summaryrefslogtreecommitdiffstats
path: root/nms-patches/World.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-03-05 18:50:38 +1100
committermd_5 <git@md-5.net>2016-03-05 18:50:38 +1100
commit60f01ef304badd4812cf17b3b39a3a53e4ee85d5 (patch)
treee0b6fcc7d60978ebed60541dcee4eb46ecc405ee /nms-patches/World.patch
parent94ba82430263ebb42632f51bc266c5a0297c10b7 (diff)
downloadcraftbukkit-60f01ef304badd4812cf17b3b39a3a53e4ee85d5.tar
craftbukkit-60f01ef304badd4812cf17b3b39a3a53e4ee85d5.tar.gz
craftbukkit-60f01ef304badd4812cf17b3b39a3a53e4ee85d5.tar.lz
craftbukkit-60f01ef304badd4812cf17b3b39a3a53e4ee85d5.tar.xz
craftbukkit-60f01ef304badd4812cf17b3b39a3a53e4ee85d5.zip
SPIGOT-1626 / MC-98994: Fix slow chunk performance
Please see https://bugs.mojang.com/browse/MC-98994 for full explanation.
Diffstat (limited to 'nms-patches/World.patch')
-rw-r--r--nms-patches/World.patch7
1 files changed, 6 insertions, 1 deletions
diff --git a/nms-patches/World.patch b/nms-patches/World.patch
index 6238ecad..3f88db9e 100644
--- a/nms-patches/World.patch
+++ b/nms-patches/World.patch
@@ -86,7 +86,12 @@
}
public World b() {
-@@ -197,6 +260,27 @@
+@@ -193,10 +256,31 @@
+ }
+
+ public Chunk getChunkAt(int i, int j) {
+- return this.chunkProvider.getChunkAt(i, j);
++ return this.chunkProvider.getOrCreateChunkFast(i, j); // CraftBukkit
}
public boolean setTypeAndData(BlockPosition blockposition, IBlockData iblockdata, int i) {