summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-01-16 15:58:49 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-01-16 15:58:49 +0100
commitdc33276dda5beacf9470d6060f72730118ba550d (patch)
tree6ebcb9d63146b2626311220b69b0c311e2a74c94 /src/ClientHandle.cpp
parentMerge pull request #2875 from LogicParrot/fallDamage (diff)
parentFix crash when tamed wolf is hit by arrows (diff)
downloadcuberite-dc33276dda5beacf9470d6060f72730118ba550d.tar
cuberite-dc33276dda5beacf9470d6060f72730118ba550d.tar.gz
cuberite-dc33276dda5beacf9470d6060f72730118ba550d.tar.bz2
cuberite-dc33276dda5beacf9470d6060f72730118ba550d.tar.lz
cuberite-dc33276dda5beacf9470d6060f72730118ba550d.tar.xz
cuberite-dc33276dda5beacf9470d6060f72730118ba550d.tar.zst
cuberite-dc33276dda5beacf9470d6060f72730118ba550d.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 377a84ce9..6585a38b2 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1640,7 +1640,10 @@ void cClientHandle::HandleUseEntity(UInt32 a_TargetEntityID, bool a_IsLeftClick)
}
a_Entity->TakeDamage(*m_Me);
m_Me->AddFoodExhaustion(0.3);
- m_Me->NotifyFriendlyWolves(a_Entity);
+ if (a_Entity->IsPawn())
+ {
+ m_Me->NotifyFriendlyWolves(static_cast<cPawn*>(a_Entity));
+ }
return true;
}
} Callback(m_Player);