mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
Remove more redundant code
This commit is contained in:
parent
17e6e857b5
commit
d8c6364c4c
@ -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…
Reference in New Issue
Block a user