mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 19:28:03 +01:00
SPIGOT-7918: Make error message clearer for slot types not present in player inventories
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a24f08778b
commit
d6c970b00b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue