You could now only get fish from non-source blocks. Fixed it.

master
STRWarrior 2013-12-21 14:11:21 +01:00
parent 3c73076be4
commit 128de10a2f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ void cFloater::SpawnOn(cClientHandle & a_Client)
void cFloater::Tick(float a_Dt, cChunk & a_Chunk) void cFloater::Tick(float a_Dt, cChunk & a_Chunk)
{ {
HandlePhysics(a_Dt, 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)) if ((!m_CanPickupItem) && (m_World->GetTickRandomNumber(100) == 0))
{ {