Remove more redundant code

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-11-18 09:28:11 +11:00
parent 43609f7ab2
commit 42ec813009

View file

@ -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) {