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:
Ursprung
a24f08778b
Commit
d6c970b00b
@ -136,7 +136,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
|
|||||||
this.setHelmet(item);
|
this.setHelmet(item);
|
||||||
break;
|
break;
|
||||||
default:
|
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:
|
case HEAD:
|
||||||
return getHelmet();
|
return getHelmet();
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Not implemented. This is a bug");
|
throw new IllegalArgumentException("Could not get slot " + slot + " - not a valid slot for PlayerInventory");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren