mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-07 19:19:32 +01:00
Fix hopper intake issue.
This commit is contained in:
parent
04b0e21e53
commit
0904b2b36c
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user