prevent double lookup
This commit is contained in:
parent
07b0e2cdbf
commit
44ece7c510
@ -87,7 +87,7 @@ public class BlockStateInterface implements Helper {
|
|||||||
if (region != null) {
|
if (region != null) {
|
||||||
prevCached = region;
|
prevCached = region;
|
||||||
}
|
}
|
||||||
IBlockState type = world.cache.getBlock(x, y, z);
|
IBlockState type = region.getBlock(x & 511, y, z & 511);
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user