Merge pull request #156

Add Hopper to Hotkeys
This commit is contained in:
mfnalex 2022-10-01 12:56:00 +02:00 committed by GitHub
commit d0dcb50c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -656,6 +656,7 @@ public class ChestSortListener implements org.bukkit.event.Listener {
&& e.getInventory().getType() != InventoryType.DISPENSER
&& e.getInventory().getType() != InventoryType.DROPPER
&& e.getInventory().getType() != InventoryType.ENDER_CHEST
&& e.getInventory().getType() != InventoryType.HOPPER
&& !e.getInventory().getType().name().equalsIgnoreCase("SHULKER_BOX")
&& (e.getInventory().getHolder() == null || !e.getInventory().getHolder().getClass().toString().endsWith(".CraftBarrel"))
&& e.getInventory() != p.getEnderChest()