summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-25 19:32:06 +1000
committermd_5 <git@md-5.net>2018-07-25 19:32:06 +1000
commit1ef1ffd664b55d9dc9800023182c779daff2594a (patch)
treea2940c1415873b59f1e0898e217cf05a14830097 /src
parent3599dbe3c27ad950700b9a76d198951e15f882ba (diff)
downloadcraftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.tar
craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.tar.gz
craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.tar.lz
craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.tar.xz
craftbukkit-1ef1ffd664b55d9dc9800023182c779daff2594a.zip
SPIGOT-4137: Fix World.regenerateChunk
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 162c79e8..9b295cdc 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -218,17 +218,13 @@ public class CraftWorld implements World {
net.minecraft.server.Chunk chunk = null;
- chunk = Futures.getUnchecked(world.getChunkProviderServer().generateChunk(x, z));
+ chunk = Futures.getUnchecked(world.getChunkProviderServer().generateChunk(x, z, true));
PlayerChunk playerChunk = world.getPlayerChunkMap().getChunk(x, z);
if (playerChunk != null) {
playerChunk.chunk = chunk;
}
if (chunk != null) {
- world.getChunkProviderServer().chunks.put(chunkKey, chunk);
-
- chunk.addEntities();
-
refreshChunk(x, z);
}