mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Remove more redundant code
By: md_5 <git@md-5.net>
This commit is contained in:
parent
43609f7ab2
commit
42ec813009
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…
Reference in a new issue