safety check (and hopeful fix) for chunk saving
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
f9b17ea956
commit
d617037db6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue