Skip to content

Commit a0e4a0a

Browse files
committed
Allow all new versions for NeoForge by default
1 parent 2cb7f67 commit a0e4a0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/fr/flowarg/flowupdater/versions/NeoForgeVersion.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ protected boolean isCompatible()
2828
if (this.modLoaderVersion.startsWith(str))
2929
return true;
3030
}
31-
return false;
31+
32+
return Integer.parseInt(this.modLoaderVersion.split("\\.")[0]) >=
33+
Integer.parseInt(this.compatibleVersions[0].substring(0, 2));
3234
}
3335

3436
@Override

0 commit comments

Comments
 (0)