From 20d9f644a67443905e28d4df4c25f9a4fe0d32c1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 7 Mar 2016 15:52:48 +1100 Subject: [PATCH] SPIGOT-1823: Use fast chunk lookup in CraftWorld also --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 4878ef83f4..9e0b5afa1e 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -122,7 +122,7 @@ public class CraftWorld implements World { } public Chunk getChunkAt(int x, int z) { - return this.world.getChunkProviderServer().getChunkAt(x, z).bukkitChunk; + return this.world.getChunkProviderServer().getOrCreateChunkFast(x, z).bukkitChunk; } public Chunk getChunkAt(Block block) {