mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-22 04:37:42 +01:00
Fixed consumables used in wrong inventories.
This commit is contained in:
parent
128facc491
commit
0a4eb0f67c
@ -39,7 +39,8 @@ public class Consumable extends UseItem {
|
||||
* of its item options. if so, the consumable should be consumed
|
||||
*/
|
||||
public boolean useOnItem(InventoryClickEvent event, NBTItem target) {
|
||||
|
||||
if(event.getClickedInventory() != event.getWhoClicked().getInventory()) return false;
|
||||
|
||||
/*
|
||||
* unidentified items do not have any type, so you must check if the
|
||||
* item has a type first.
|
||||
|
Loading…
Reference in New Issue
Block a user