From 42ec813009d1da843998fd47a2c624fea93c8140 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 18 Nov 2016 09:28:11 +1100 Subject: [PATCH] Remove more redundant code By: md_5 --- .../java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index cf411a0903..bedc08540a 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/paper-server/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) {