mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-07 08:58:20 +01:00
Remove unnecessary string concat
This commit is contained in:
parent
f98bfe702c
commit
bd90de0df2
@ -168,7 +168,7 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl
|
||||
@Override
|
||||
protected synchronized void safeItemInsert(int slot, @NotNull ItemStack itemStack) {
|
||||
Check.argCondition(!MathUtils.isBetween(slot, 0, getSize()),
|
||||
"The slot " + slot + " does not exist for player");
|
||||
"The slot {0} does not exist for player", slot);
|
||||
Check.notNull(itemStack, "The ItemStack cannot be null, you can set air instead");
|
||||
|
||||
EntityEquipmentPacket.Slot equipmentSlot;
|
||||
|
Loading…
Reference in New Issue
Block a user