summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2020-05-03 22:04:33 +0200
committerGitHub <noreply@github.com>2020-05-03 22:04:33 +0200
commit994036a3b8b09f8da1b6ec2055cc7a5ceb05a776 (patch)
tree54de33e0f563209cdabc40067b72328ec3126be8 /src/Entities/Pawn.cpp
parentUpdate src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h (diff)
downloadcuberite-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/Pawn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp
index 6a69cf6e5..b872cdfac 100644
--- a/src/Entities/Pawn.cpp
+++ b/src/Entities/Pawn.cpp
@@ -84,7 +84,7 @@ void cPawn::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
// Spectators cannot push entities around
if ((!IsPlayer()) || (!static_cast<cPlayer *>(this)->IsGameModeSpectator()))
{
- m_World->ForEachEntityInBox(cBoundingBox(GetPosition(), GetWidth(), GetHeight()), [=](cEntity & a_Entity)
+ m_World->ForEachEntityInBox(GetBoundingBox(), [=](cEntity & a_Entity)
{
if (a_Entity.GetUniqueID() == GetUniqueID())
{