add bench link
This commit is contained in:
parent
b2cbce28b3
commit
65a59cb739
@ -58,6 +58,7 @@ public class BlockStateInterface implements Helper {
|
|||||||
// if it's the same chunk as last time
|
// if it's the same chunk as last time
|
||||||
// we can just skip the mc.world.getChunk lookup
|
// we can just skip the mc.world.getChunk lookup
|
||||||
// which is a Long2ObjectOpenHashMap.get
|
// which is a Long2ObjectOpenHashMap.get
|
||||||
|
// see issue #113
|
||||||
if (cached != null && cached.x == x >> 4 && cached.z == z >> 4) {
|
if (cached != null && cached.x == x >> 4 && cached.z == z >> 4) {
|
||||||
return cached.getBlockState(x, y, z);
|
return cached.getBlockState(x, y, z);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user