fixed up a few things about the armor command (eventually we'll like actually have a good inventory system, but this works for now)

This commit is contained in:
batchprogrammer314
2021-08-25 17:54:32 -05:00
parent a9180bc112
commit 92aefd56c2
2 changed files with 83 additions and 71 deletions

View File

@@ -662,7 +662,7 @@ public class Bot extends EntityPlayer {
setItem(item, EnumItemSlot.OFFHAND);
}
private void setItem(org.bukkit.inventory.ItemStack item, EnumItemSlot slot) {
public void setItem(org.bukkit.inventory.ItemStack item, EnumItemSlot slot) {
if (item == null) item = defaultItem;
if (slot == EnumItemSlot.MAINHAND) {