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
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class BlockStateInterface implements Helper {
if (region != null) {
prevCached = region;
}
IBlockState type = world.cache.getBlock(x, y, z);
IBlockState type = region.getBlock(x & 511, y, z & 511);
if (type != null) {
return type;
}