mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Prevent Blocks from getting lost when a chunk reloads
This commit is contained in:
1 parent
ca4076077e
commit
6e3ee31336
4 files changed
+21
-2
No files matched your search
@@ -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