mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Merge pull request #446 from dpkirchner/master
Remove code that swaps stacks of items between cursor and furnace.
This commit is contained in:
commit
4e57bc30df
@ -358,19 +358,4 @@ public class ItemListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@EventHandler(priority=EventPriority.LOWEST)
|
|
||||||
public void onFurnaceInsert(InventoryClickEvent e) {
|
|
||||||
if (e.getInventory().getType() == InventoryType.FURNACE && e.getCursor() != null && (e.getRawSlot() == 0 || e.getSlot() == 1)) {
|
|
||||||
if (!e.isShiftClick()) {
|
|
||||||
ItemStack item = e.getCurrentItem();
|
|
||||||
e.setCurrentItem(e.getCursor());
|
|
||||||
e.setCursor(item);
|
|
||||||
e.setCancelled(true);
|
|
||||||
PlayerInventory.update((Player)e.getWhoClicked());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user