diff --git a/Spigot-Server-Patches/0062-Avoid-hopper-searches-if-there-are-no-items.patch b/Spigot-Server-Patches/0062-Avoid-hopper-searches-if-there-are-no-items.patch index a8600c4e4c..f9f699b31a 100644 --- a/Spigot-Server-Patches/0062-Avoid-hopper-searches-if-there-are-no-items.patch +++ b/Spigot-Server-Patches/0062-Avoid-hopper-searches-if-there-are-no-items.patch @@ -1,4 +1,4 @@ -From 34c7679b3d20769bbaeba17d3ee50ad87bde447a Mon Sep 17 00:00:00 2001 +From ffe9aada565efa029e3c8ebaed7c5e94b286dbe9 Mon Sep 17 00:00:00 2001 From: CullanP Date: Thu, 3 Mar 2016 02:13:38 -0600 Subject: [PATCH] Avoid hopper searches if there are no items @@ -14,7 +14,7 @@ And since minecart hoppers are used _very_ rarely near we can avoid alot of sear Combined, this adds up a lot. diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java -index 42fedb7..806e499 100644 +index 42fedb7..13d43d5 100644 --- a/src/main/java/net/minecraft/server/Chunk.java +++ b/src/main/java/net/minecraft/server/Chunk.java @@ -46,6 +46,13 @@ public class Chunk { @@ -81,7 +81,7 @@ index 42fedb7..806e499 100644 + // Paper start + int[] counts; -+ if (ItemStack.class.isAssignableFrom(oclass)) { ++ if (EntityItem.class.isAssignableFrom(oclass)) { + counts = itemCounts; + } else if (IInventory.class.isAssignableFrom(oclass)) { + counts = inventoryEntityCounts; @@ -95,5 +95,5 @@ index 42fedb7..806e499 100644 while (iterator.hasNext()) { -- -2.8.0 +2.8.2