Remove unnecessary string concat

This commit is contained in:
TheMode 2021-04-12 04:27:36 +02:00
parent f98bfe702c
commit bd90de0df2

View File

@ -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;