File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
installer/src/main/kotlin/gg/essential/installer/modloader Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ object NeoForgeModloader : Modloader(ModloaderType.NEOFORGE) {
9494
9595 return neoforgeVersionList.fold(mutableMapOf<MCVersion , MutableList <ModloaderVersion >>()) { acc, ver ->
9696 val modloaderVersion = ModloaderVersion .fromVersion(ModloaderType .NEOFORGE , ver)
97+ // NeoForge decided to support the craftmine april fools, which was the first version that (obviously) didn't have the numeric version parseable
98+ if (modloaderVersion.numeric.isBlank()) {
99+ logger.warn(" Failed to parse $ver ! No numeric version was found..." )
100+ return @fold acc
101+ }
97102 val versionRaw = " 1." + modloaderVersion.numeric.substring(0 .. < modloaderVersion.numeric.lastIndexOf(' .' ))
98103 val mcVersion = MCVersion .fromString(versionRaw) ? : return @fold acc
99104 val list = acc.getOrPut(mcVersion) { mutableListOf () }
You can’t perform that action at this time.
0 commit comments