Compare commits

..

3 commits

Author SHA1 Message Date
ENDERZOMBI102 50e0ab5d48 chore: Remove unused import
It Was added by me for testing and forgot to remove it :/
2024-07-06 01:31:42 +02:00
ENDERZOMBI102 e748a2834f Merge remote-tracking branch 'origin/fix/semver-crash-mc1.20' into fix/semver-crash-mc1.20 2024-07-06 01:28:57 +02:00
ENDERZOMBI102 6eeade90b0 fix(semver): Minecraft 1.20 crashing the semver parser
Minecraft doesn't use semver, and as such, sometimes it can cause problems, like in this case: `1.20` is not a valid semver version, but we must deal with it anyway, we've made the `<patch>` component optional, defaulting it to `0` if missing
2024-07-06 01:26:46 +02:00

View file

@ -9,7 +9,6 @@ import java.util.regex.Pattern;
import dev.frogmc.frogloader.api.mod.SemVer;
import dev.frogmc.frogloader.impl.SemVerParseException;
import lombok.NonNull;
import lombok.SneakyThrows;
import org.jetbrains.annotations.Nullable;
public record SemVerImpl(int major, int minor, int patch, String prerelease, String build) implements SemVer {