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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user