1
0

Damage fishing rod when catching the hook on a block, then reeling it in (#4151)

Fixes #4132
This commit is contained in:
Bond-009 2018-02-11 13:40:16 +01:00 committed by peterbell10
parent d3c1c626f5
commit 7e9695ecb0

View File

@ -234,6 +234,14 @@ public:
a_Player->UseEquippedItem(1);
cRoot::Get()->GetPluginManager()->CallHookPlayerFished(*a_Player, Drops);
}
else
{
BLOCKTYPE Block = a_World->GetBlock(FloaterInfo.GetPos() - Vector3d(0, 0.1, 0));
if ((Block != E_BLOCK_AIR) && !IsBlockWater(Block))
{
a_Player->UseEquippedItem(2);
}
}
}
else
{