From 8efde94e4e25dadbe8083c755bfbc780f1540b48 Mon Sep 17 00:00:00 2001 From: STRWarrior Date: Sat, 21 Dec 2013 14:07:32 +0100 Subject: Fixed bug where you could get fish from non-source blocks. --- src/Entities/Floater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/Floater.cpp b/src/Entities/Floater.cpp index 0eefa9c54..52089b776 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()))) + 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)) { -- cgit v1.2.3