1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45: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:
TheBusyBiscuit 2017-10-05 11:32:18 +02:00 committed by GitHub
commit 4e57bc30df

View File

@ -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());
}
}
}
}