diff options
author | Alexander Harkness <me@bearbin.net> | 2020-05-03 22:04:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 22:04:33 +0200 |
commit | 994036a3b8b09f8da1b6ec2055cc7a5ceb05a776 (patch) | |
tree | 54de33e0f563209cdabc40067b72328ec3126be8 /src/Entities/Entity.cpp | |
parent | Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h (diff) | |
download | cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.gz cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.bz2 cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.lz cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.xz cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.tar.zst cuberite-994036a3b8b09f8da1b6ec2055cc7a5ceb05a776.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 0f1266445..431d5f54b 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -2353,7 +2353,7 @@ float cEntity::GetExplosionExposureRate(Vector3d a_ExplosionPosition, float a_Ex return 0; } - cBoundingBox EntityBox(GetPosition(), m_Width / 2, m_Height); + auto EntityBox = GetBoundingBox(); cBoundingBox ExplosionBox(a_ExplosionPosition, a_ExlosionPower * 2.0); cBoundingBox IntersectionBox(EntityBox); |