Remove more redundant code

This commit is contained in:
md_5 2016-11-18 09:28:11 +11:00
parent 17e6e857b5
commit d8c6364c4c

View File

@ -85,7 +85,7 @@ public class CraftInventory implements Inventory {
} }
public void setItem(int index, ItemStack item) { 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) { public boolean contains(int materialId) {