fix not adding game to classpath after remapping
All checks were successful
Publish to snapshot maven / build (push) Successful in 33s

This commit is contained in:
moehreag 2024-08-28 22:30:45 +02:00
parent 136cda8eb4
commit aeb621d704
3 changed files with 7 additions and 8 deletions

View file

@ -7,7 +7,7 @@ plugins {
}
group = "dev.frogmc"
version = "0.0.1-alpha.28"
version = "0.0.1-alpha.29"
repositories {
maven {

View file

@ -1,5 +1,5 @@
#Sat May 11 16:50:23 CEST 2024
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists

View file

@ -162,18 +162,17 @@ public class MinecraftGamePlugin implements GamePlugin {
}
if (mappings != null) {
Thyroxine.remap(mappings, gamePath, remappedGamePath, true, false);
return;
}
} catch (Exception e) {
throw new IllegalStateException("Failed to remap game: ", e);
}
} else {
runtimePath = gamePath;
LOGGER.error("No intermediary mappings found! The game will be launched obfuscated. Mods are likely to error! " +
"You may need to specify the path of your mappings manually. " +
"Use -D" + SystemProperties.INTERMEDIARY_MAPPINGS + " to specify a file!");
}
} catch (Exception e) {
throw new IllegalStateException("Failed to remap game: ", e);
}
}
}
FrogLoaderImpl.getInstance().getClassloader().addURL(runtimePath.toUri().toURL());
}