summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2015-03-17 21:17:56 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2015-03-17 21:17:56 +0000
commit234e60735ca6f4ecb7e56996c95ea31b5bb97cc0 (patch)
tree12c73eb64af5f735baf68ea1061f89adccaae821 /src
parent30d751b3626704d01cced352c728830136d77a54 (diff)
downloadcraftbukkit-234e60735ca6f4ecb7e56996c95ea31b5bb97cc0.tar
craftbukkit-234e60735ca6f4ecb7e56996c95ea31b5bb97cc0.tar.gz
craftbukkit-234e60735ca6f4ecb7e56996c95ea31b5bb97cc0.tar.lz
craftbukkit-234e60735ca6f4ecb7e56996c95ea31b5bb97cc0.tar.xz
craftbukkit-234e60735ca6f4ecb7e56996c95ea31b5bb97cc0.zip
SPIGOT-716: Fix regenerating chunks
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 621c89f6..0d80c41b 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -261,6 +261,10 @@ public class CraftWorld implements World {
private void chunkLoadPostProcess(net.minecraft.server.Chunk chunk, int cx, int cz) {
if (chunk != null) {
+ // moved from Chunk.<init>
+ for (int k = 0; k < chunk.entitySlices.length; ++k) {
+ chunk.entitySlices[k] = new EntitySlice(net.minecraft.server.Entity.class);
+ }
world.chunkProviderServer.chunks.put(LongHash.toLong(cx, cz), chunk);
chunk.addEntities();