1
0

Fixed bug where you could get fish from non-source blocks.

This commit is contained in:
STRWarrior 2013-12-21 14:07:32 +01:00
parent 78bd1a6165
commit 8efde94e4e

View File

@ -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))
{