diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-21 14:11:21 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-21 14:11:21 +0100 |
commit | 128de10a2f7246b059f9ce41539c91dbcd30844a (patch) | |
tree | 011e02038db4cccd121c9dc01b39bba8f57f9931 | |
parent | Fixed bug where you could pickup the floater only to get one spawned instantly or the other way around. (diff) | |
download | cuberite-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.cpp | 2 |
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)) { |