13
0
geforkt von Mirrors/Paper

SPIGOT-7918: Make error message clearer for slot types not present in player inventories

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2024-10-23 07:30:39 +11:00
Ursprung a24f08778b
Commit d6c970b00b

Datei anzeigen

@ -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");
}
}