From 994036a3b8b09f8da1b6ec2055cc7a5ceb05a776 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sun, 3 May 2020 20:04:33 +0000 Subject: Add cEntity::GetBoundingBox, and use where appropriate. (#4711) * Add cEntity::GetBoundingBox, and use where appropriate. --- src/Entities/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Entities/Player.cpp') diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 55139f65e..46a1606d0 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -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 -- cgit v1.2.3