summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-05 00:07:22 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-05 00:07:22 +0100
commit630507fd5b8a7ac280ee75994f98b9ecfdcb7a70 (patch)
tree731e8b7896887072bea12f35b3a164761e01abdd /src/Mobs/Monster.cpp
parentAdded more SendMessageXXX() functions (diff)
downloadcuberite-630507fd5b8a7ac280ee75994f98b9ecfdcb7a70.tar
cuberite-630507fd5b8a7ac280ee75994f98b9ecfdcb7a70.tar.gz
cuberite-630507fd5b8a7ac280ee75994f98b9ecfdcb7a70.tar.bz2
cuberite-630507fd5b8a7ac280ee75994f98b9ecfdcb7a70.tar.lz
cuberite-630507fd5b8a7ac280ee75994f98b9ecfdcb7a70.tar.xz
cuberite-630507fd5b8a7ac280ee75994f98b9ecfdcb7a70.tar.zst
cuberite-630507fd5b8a7ac280ee75994f98b9ecfdcb7a70.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 283ef36e6..b49a8661d 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -264,7 +264,7 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
{
m_Destination.y = FindFirstNonAirBlockPosition(m_Destination.x, m_Destination.z);
- if (DoesPosYRequireJump(m_Destination.y))
+ if (DoesPosYRequireJump((int)floor(m_Destination.y)))
{
m_bOnGround = false;
AddPosY(1.5); // Jump!!