Damage fishing rod when catching the hook on a block, then reeling it in (#4151)
Fixes #4132
This commit is contained in:
parent
d3c1c626f5
commit
7e9695ecb0
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user