Fix misleading nbt limiter error message

This commit is contained in:
booky committed 2026-03-08 15:37:15 +01:00
1 parent fea65c7891
commit 989c38f377
1 file changed
+1 -1
@@ -70,7 +70,7 @@ public interface NBTLimiter {
if (amount < 0) {
throw new IllegalArgumentException("Can't increment NBT limiter by negative amount: " + amount);
} else if (this.bytes + amount > maxBytes) {
throw new IllegalArgumentException("NBT size limit reached (" + this.bytes + "/" + maxBytes + ")");
throw new IllegalArgumentException("NBT size limit reached (" + this.bytes + " + " + amount + " > " + maxBytes + ")");
}
this.bytes += amount;
}