diff options
author | Tahg <tahgtahv@gmail.com> | 2011-08-19 23:17:48 -0400 |
---|---|---|
committer | Tahg <tahgtahv@gmail.com> | 2011-08-19 23:17:48 -0400 |
commit | 6e4b12cdf1f9b7fea617b54f0b7e0d083f4432a0 (patch) | |
tree | 2fda210b2e7ff9237d89c1dc7d657d9e359c8427 /src/main/java/org/bukkit | |
parent | 90d1afb748223366ae16cd05da13683aeb861a99 (diff) | |
download | craftbukkit-6e4b12cdf1f9b7fea617b54f0b7e0d083f4432a0.tar craftbukkit-6e4b12cdf1f9b7fea617b54f0b7e0d083f4432a0.tar.gz craftbukkit-6e4b12cdf1f9b7fea617b54f0b7e0d083f4432a0.tar.lz craftbukkit-6e4b12cdf1f9b7fea617b54f0b7e0d083f4432a0.tar.xz craftbukkit-6e4b12cdf1f9b7fea617b54f0b7e0d083f4432a0.zip |
safety check (and hopeful fix) for chunk saving
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index ed09f0f3..23d45a6d 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -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); |