fix not adding game to classpath after remapping
All checks were successful
Publish to snapshot maven / build (push) Successful in 33s
All checks were successful
Publish to snapshot maven / build (push) Successful in 33s
This commit is contained in:
parent
136cda8eb4
commit
aeb621d704
|
@ -7,7 +7,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "dev.frogmc"
|
||||
version = "0.0.1-alpha.28"
|
||||
version = "0.0.1-alpha.29"
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue