Fixed double-event firing
This commit is contained in:
@@ -101,7 +101,7 @@ public class BlockInventoryFragment extends Fragment{
|
|||||||
holding = false;
|
holding = false;
|
||||||
holdTime = 0f;
|
holdTime = 0f;
|
||||||
|
|
||||||
Events.fire(new WithdrawEvent(tile, player, lastItem, amount));
|
if(net.client()) Events.fire(new WithdrawEvent(tile, player, lastItem, amount));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ public class BlockInventoryFragment extends Fragment{
|
|||||||
lastItem = item;
|
lastItem = item;
|
||||||
holding = true;
|
holding = true;
|
||||||
holdTime = 0f;
|
holdTime = 0f;
|
||||||
Events.fire(new WithdrawEvent(tile, player, item, amount));
|
if(net.client()) Events.fire(new WithdrawEvent(tile, player, item, amount));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user