summaryrefslogtreecommitdiffstats
path: root/source/Player.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-19 09:02:33 +0200
committermadmaxoft <github@xoft.cz>2013-08-19 09:02:33 +0200
commitee2b8c7103ef9a4f3b81334407b4696720943012 (patch)
tree4b2fd7ee5e4fa33d04c49d6375ada69359640cbd /source/Player.cpp
parentImplemented cWorld:QueueSetBlock(), as requested for delayed blocksetting. (diff)
downloadcuberite-ee2b8c7103ef9a4f3b81334407b4696720943012.tar
cuberite-ee2b8c7103ef9a4f3b81334407b4696720943012.tar.gz
cuberite-ee2b8c7103ef9a4f3b81334407b4696720943012.tar.bz2
cuberite-ee2b8c7103ef9a4f3b81334407b4696720943012.tar.lz
cuberite-ee2b8c7103ef9a4f3b81334407b4696720943012.tar.xz
cuberite-ee2b8c7103ef9a4f3b81334407b4696720943012.tar.zst
cuberite-ee2b8c7103ef9a4f3b81334407b4696720943012.zip
Diffstat (limited to 'source/Player.cpp')
-rw-r--r--source/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index 5a789e285..13009dad8 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -1353,7 +1353,7 @@ void cPlayer::UseEquippedItem(void)
void cPlayer::SetSwimState(cChunk & a_Chunk)
{
int RelY = (int)floor(m_LastPosY + 0.1);
- if ((RelY < 0) || (RelY >= cChunkDef::Height))
+ if ((RelY < 0) || (RelY >= cChunkDef::Height - 1))
{
m_IsSwimming = false;
m_IsSubmerged = false;