Improve fml mod list parsing

This commit is contained in:
Nassim Jahnke
2025-01-31 19:11:34 +01:00
parent 91bdcebb1a
commit 6815808d32
2 changed files with 3 additions and 0 deletions

View File

@@ -79,6 +79,8 @@ public final class ModInfo {
public Mod(String id, String version) {
this.id = Preconditions.checkNotNull(id, "id");
this.version = Preconditions.checkNotNull(version, "version");
Preconditions.checkArgument(id.length() < 128, "mod id is too long");
Preconditions.checkArgument(version.length() < 128, "mod version is too long");
}
public String getId() {