mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
safety check (and hopeful fix) for chunk saving
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
f9b17ea956
commit
d617037db6
@ -153,7 +153,7 @@ public class CraftWorld implements World {
|
||||
|
||||
net.minecraft.server.Chunk chunk = world.chunkProviderServer.getOrCreateChunk(x, z);
|
||||
|
||||
if (save) {
|
||||
if (save && !chunk.isEmpty()) {
|
||||
chunk.removeEntities();
|
||||
world.chunkProviderServer.saveChunk(chunk);
|
||||
world.chunkProviderServer.saveChunkNOP(chunk);
|
||||
|
Loading…
Reference in New Issue
Block a user