Fix hopper intake issue.

This commit is contained in:
Brianna 2019-06-29 21:27:01 -04:00
parent 04b0e21e53
commit 0904b2b36c

View File

@ -54,6 +54,8 @@ public class ItemListeners implements Listener {
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
public void onInvPickup(InventoryPickupItemEvent event) {
int amount = getActualAmount(event.getItem());
if (amount <= 32) return;
event.setCancelled(true);
updateInventory(event.getItem(), event.getInventory());