1
0
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:
Daniel Ratcliffe 2018-01-12 13:57:50 +00:00 committed by GitHub
commit 25f7c58400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}