From 5c5c2b0a22bb0f07faf1b93b599aaaf20d5e6e36 Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 5 May 2016 20:22:01 -0400 Subject: [PATCH] Fix hopper suck in patch bug was checking for ItemStack's instead of EntityItem --- .../Avoid-hopper-searches-if-there-are-no-items.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Avoid-hopper-searches-if-there-are-no-items.patch b/Spigot-Server-Patches/Avoid-hopper-searches-if-there-are-no-items.patch index c1f951573..75eb14015 100644 --- a/Spigot-Server-Patches/Avoid-hopper-searches-if-there-are-no-items.patch +++ b/Spigot-Server-Patches/Avoid-hopper-searches-if-there-are-no-items.patch @@ -81,7 +81,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper start + int[] counts; -+ if (ItemStack.class.isAssignableFrom(oclass)) { ++ if (EntityItem.class.isAssignableFrom(oclass)) { + counts = itemCounts; + } else if (IInventory.class.isAssignableFrom(oclass)) { + counts = inventoryEntityCounts;