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:
KAMKEEL committed 2026-08-11 15:09:59 -04:00
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;
@@ -175,7 +175,6 @@ public class ScriptBlock implements IBlock {
}
public boolean canCollide(double maxVolume) {
block.setBlockBoundsBasedOnState(world.getMCWorld(), getX(), getY(), getZ());
AxisAlignedBB alignedBB = block.getCollisionBoundingBoxFromPool(world.getMCWorld(), getX(), getY(), getZ());
if (alignedBB == null) {
return false;