prevent double lookup

This commit is contained in:
Leijurv 2018-09-09 09:54:09 -07:00
parent 07b0e2cdbf
commit 44ece7c510
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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;
} }