diff --git a/CraftBukkit/Reduce-ItemStack-copying.patch b/CraftBukkit/Reduce-ItemStack-copying.patch index 900ab0af..76e4b4e9 100644 --- a/CraftBukkit/Reduce-ItemStack-copying.patch +++ b/CraftBukkit/Reduce-ItemStack-copying.patch @@ -263,7 +263,7 @@ diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java - } - } - return -1; -+ return ListUtils.indexOf(storage(), Objects::isNull); ++ return ListUtils.indexOf(storage(), item -> item == null || Material.AIR.equals(item.getType())); } public int firstPartial(int materialId) {