mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Remove more redundant code
This commit is contained in:
parent
17e6e857b5
commit
d8c6364c4c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue