summaryrefslogtreecommitdiffstats
path: root/src/Entities/Floater.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-21 14:11:21 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-21 14:11:21 +0100
commit128de10a2f7246b059f9ce41539c91dbcd30844a (patch)
tree011e02038db4cccd121c9dc01b39bba8f57f9931 /src/Entities/Floater.cpp
parentFixed bug where you could pickup the floater only to get one spawned instantly or the other way around. (diff)
downloadcuberite-128de10a2f7246b059f9ce41539c91dbcd30844a.tar
cuberite-128de10a2f7246b059f9ce41539c91dbcd30844a.tar.gz
cuberite-128de10a2f7246b059f9ce41539c91dbcd30844a.tar.bz2
cuberite-128de10a2f7246b059f9ce41539c91dbcd30844a.tar.lz
cuberite-128de10a2f7246b059f9ce41539c91dbcd30844a.tar.xz
cuberite-128de10a2f7246b059f9ce41539c91dbcd30844a.tar.zst
cuberite-128de10a2f7246b059f9ce41539c91dbcd30844a.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Floater.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Floater.cpp b/src/Entities/Floater.cpp
index 52089b776..ac7a82f91 100644
--- a/src/Entities/Floater.cpp
+++ b/src/Entities/Floater.cpp
@@ -34,7 +34,7 @@ void cFloater::SpawnOn(cClientHandle & a_Client)
void cFloater::Tick(float a_Dt, cChunk & a_Chunk)
{
HandlePhysics(a_Dt, a_Chunk);
- if (IsBlockWater(m_World->GetBlock((int) GetPosX(), (int) GetPosY(), (int) GetPosZ())) && m_World->GetBlockMeta((int) GetPosX(), (int) GetPosY(), (int) GetPosZ()) != 0)
+ if (IsBlockWater(m_World->GetBlock((int) GetPosX(), (int) GetPosY(), (int) GetPosZ())) && m_World->GetBlockMeta((int) GetPosX(), (int) GetPosY(), (int) GetPosZ()) == 0)
{
if ((!m_CanPickupItem) && (m_World->GetTickRandomNumber(100) == 0))
{