diff --git a/src/main/java/com/mojang/serialization/Codec.java b/src/main/java/com/mojang/serialization/Codec.java index 47a4a1ad..3dd5a97b 100644 --- a/src/main/java/com/mojang/serialization/Codec.java +++ b/src/main/java/com/mojang/serialization/Codec.java @@ -464,7 +464,7 @@ static > Function> checkRange( if (value.compareTo(minInclusive) >= 0 && value.compareTo(maxInclusive) <= 0) { return DataResult.success(value); } - return DataResult.error(() -> "Value " + value + " outside of range [" + minInclusive + ":" + maxInclusive + "]", value); + return DataResult.error(() -> "Value " + value + " outside of range [" + minInclusive + ":" + maxInclusive + "]"); }; }