private void OnBlockChanged(ServerLandscapeManagerBlockChangedEventArgs e) { var handler = BlockChanged; if (handler != null) { handler(this, e); } }
void ChunkBlocksChanged(object sender, ChunkDataProviderDataChangedEventArgs e) { var ea = new ServerLandscapeManagerBlockChangedEventArgs((IAbstractChunk)sender, e); OnBlockChanged(ea); var serverChunk = (ServerChunk)sender; RequestSave(serverChunk); }