diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-05 00:07:22 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-05 00:07:22 +0100 |
commit | 630507fd5b8a7ac280ee75994f98b9ecfdcb7a70 (patch) | |
tree | 731e8b7896887072bea12f35b3a164761e01abdd /src/Mobs/Monster.cpp | |
parent | Added more SendMessageXXX() functions (diff) | |
download | cuberite-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.cpp | 2 |
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!! |