SPIGOT-7918: Make error message clearer for slot types not present in player inventories
This commit is contained in:
parent
4ee88e81e4
commit
71e5738a05
@ -136,7 +136,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
|
||||
this.setHelmet(item);
|
||||
break;
|
||||
default:
|
||||
throw new IllegalArgumentException("Not implemented. This is a bug");
|
||||
throw new IllegalArgumentException("Could not set slot " + slot + " - not a valid slot for PlayerInventory");
|
||||
}
|
||||
}
|
||||
|
||||
@ -163,7 +163,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
|
||||
case HEAD:
|
||||
return getHelmet();
|
||||
default:
|
||||
throw new IllegalArgumentException("Not implemented. This is a bug");
|
||||
throw new IllegalArgumentException("Could not get slot " + slot + " - not a valid slot for PlayerInventory");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user