From 60f01ef304badd4812cf17b3b39a3a53e4ee85d5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 5 Mar 2016 18:50:38 +1100 Subject: SPIGOT-1626 / MC-98994: Fix slow chunk performance Please see https://bugs.mojang.com/browse/MC-98994 for full explanation. --- nms-patches/World.patch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nms-patches/World.patch') 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) { -- cgit v1.2.3