1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-28 18:04:47 +00:00

Merge pull request #494 from SquidDev-CC/ComputerCraft/hotfix/collision-aabb

Fix getCollisionBoundingBox not using all AABBs
This commit is contained in:
SquidDev 2017-12-01 19:19:17 +00:00
commit 61e3967b8e

View File

@ -241,10 +241,9 @@ public abstract class BlockGeneric extends Block implements
if( collision.size() > 0 ) if( collision.size() > 0 )
{ {
AxisAlignedBB aabb = collision.get( 0 ); AxisAlignedBB aabb = collision.get( 0 );
for (int i=1; i<collision.size(); ++i ) for( int i = 1; i < collision.size(); i++ )
{ {
AxisAlignedBB other = collision.get( 1 ); aabb = aabb.union( collision.get( i ) );
aabb = aabb.union( other );
} }
return aabb; return aabb;
} }