mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Remove more redundant code
By: md_5 <git@md-5.net>
This commit is contained in:
parent
43609f7ab2
commit
42ec813009
@ -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