mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 01:05:12 +00:00
Revert "Refresh block bounds before reading a collision box so top slabs report the right height"
This reverts commit 715b38e694.
This commit is contained in:
1 parent
715b38e694
commit
c634c4bd35
2 files changed
-3
No files matched your search
@@ -1686,7 +1686,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
break;
|
||||
}
|
||||
Block block = worldObj.getBlock(i, ii, k);
|
||||
block.setBlockBoundsBasedOnState(worldObj, i, ii, k);
|
||||
AxisAlignedBB bb = block.getCollisionBoundingBoxFromPool(worldObj, i, ii, k);
|
||||
if (bb != null) {
|
||||
yy = bb.maxY;
|
||||
@@ -1696,7 +1695,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
Block block = worldObj.getBlock(i, ii, k);
|
||||
if (block == null || block == Blocks.air)
|
||||
continue;
|
||||
block.setBlockBoundsBasedOnState(worldObj, i, ii, k);
|
||||
AxisAlignedBB bb = block.getCollisionBoundingBoxFromPool(worldObj, i, ii, k);
|
||||
if (bb == null)
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user