Fixed bug where you could pickup the floater only to get one spawned instantly or the other way around.

master
STRWarrior 2013-12-21 14:08:58 +01:00
parent 8efde94e4e
commit 3c73076be4
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ public:
virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, char a_Dir) override
{
if (a_Dir != BLOCK_FACE_NONE)
{
return false;
}
if (a_Player->IsFishing())
{
class cFloaterCallback :