mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01: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