SPIGOT-1626 / MC-98994: Fix slow chunk performance

Please see https://bugs.mojang.com/browse/MC-98994 for full explanation.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-03-05 18:50:38 +11:00
parent 4fc9890f64
commit 52a2a37b2f
3 changed files with 27 additions and 8 deletions

View File

@@ -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) {