13
0
geforkt von Mirrors/Paper

safety check (and hopeful fix) for chunk saving

By: Tahg <tahgtahv@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-08-19 23:17:48 -04:00
Ursprung f9b17ea956
Commit d617037db6

Datei anzeigen

@ -153,7 +153,7 @@ public class CraftWorld implements World {
net.minecraft.server.Chunk chunk = world.chunkProviderServer.getOrCreateChunk(x, z); net.minecraft.server.Chunk chunk = world.chunkProviderServer.getOrCreateChunk(x, z);
if (save) { if (save && !chunk.isEmpty()) {
chunk.removeEntities(); chunk.removeEntities();
world.chunkProviderServer.saveChunk(chunk); world.chunkProviderServer.saveChunk(chunk);
world.chunkProviderServer.saveChunkNOP(chunk); world.chunkProviderServer.saveChunkNOP(chunk);