mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-11 18:00:29 +00:00
Merge pull request #494 from SquidDev-CC/hotfix/collision-aabb
Fix getCollisionBoundingBox not using all AABBs
This commit is contained in:
commit
25f7c58400
@ -241,10 +241,9 @@ public abstract class BlockGeneric extends Block implements
|
||||
if( collision.size() > 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( other );
|
||||
aabb = aabb.union( collision.get( i ) );
|
||||
}
|
||||
return aabb;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user