mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Prevent Blocks from getting lost when a chunk reloads
This commit is contained in:
@@ -209,6 +209,8 @@ public class ChunkProviderServer implements IChunkProvider
|
||||
ChunkUnloadEvent cue = new ChunkUnloadEvent(Type.CHUNK_UNLOADED, chunk.bukkitChunk);
|
||||
server.getPluginManager().callEvent(cue);
|
||||
if (!cue.isCancelled()) {
|
||||
g.getWorld().preserveChunk( (CraftChunk) chunk.bukkitChunk );
|
||||
|
||||
chunk.e();
|
||||
this.b(chunk);
|
||||
this.a(chunk);
|
||||
|
Reference in New Issue
Block a user