Add cEntity::GetBoundingBox, and use where appropriate. (#4711)
* Add cEntity::GetBoundingBox, and use where appropriate.
This commit is contained in:
committed by
GitHub
parent
5b92e6654f
commit
994036a3b8
@@ -2780,7 +2780,7 @@ bool cPlayer::DoesPlacingBlocksIntersectEntity(const sSetBlockVector & a_Blocks)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
cBoundingBox EntBox(a_Entity.GetPosition(), a_Entity.GetWidth() / 2, a_Entity.GetHeight());
|
||||
auto EntBox = a_Entity.GetBoundingBox();
|
||||
for (auto BlockBox : PlacementBoxes)
|
||||
{
|
||||
// Put in a little bit of wiggle room
|
||||
|
||||
Reference in New Issue
Block a user