From d8c6364c4ca791d595b592167d25b8f28ac2fa3c Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 18 Nov 2016 09:28:11 +1100 Subject: [PATCH] Remove more redundant code --- .../java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index cf411a0903..bedc08540a 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java @@ -85,7 +85,7 @@ public class CraftInventory implements Inventory { } public void setItem(int index, ItemStack item) { - getInventory().setItem(index, ((item == null || item.getTypeId() == 0) ? net.minecraft.server.ItemStack.a : CraftItemStack.asNMSCopy(item))); + getInventory().setItem(index, CraftItemStack.asNMSCopy(item)); } public boolean contains(int materialId) {