rename example mixin config
This commit is contained in:
parent
6fd6c3ab34
commit
287214acba
|
@ -24,9 +24,9 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
implementation(libs.remapper)
|
||||
implementation("org.apache.logging.log4j:log4j-slf4j2-impl:3.0.0-beta2")
|
||||
implementation("org.apache.logging.log4j:log4j-api:3.0.0-beta2")
|
||||
implementation("org.apache.logging.log4j:log4j-core:3.0.0-beta2")
|
||||
compileOnly("org.apache.logging.log4j:log4j-slf4j2-impl:3.0.0-beta2")
|
||||
compileOnly("org.apache.logging.log4j:log4j-api:3.0.0-beta2")
|
||||
compileOnly("org.apache.logging.log4j:log4j-core:3.0.0-beta2")
|
||||
|
||||
api(libs.mixin)
|
||||
api(libs.nightconfig)
|
||||
|
|
|
@ -17,5 +17,5 @@ breaks = [
|
|||
|
||||
[nonsense.extensions]
|
||||
pre_launch = "org/ecorous/esnesnon/nonsense/loader/example/ExamplePreLaunchExtension"
|
||||
mixin_config = "example_mod.mixin.config"
|
||||
mixin_config = "example_mod.mixins.json"
|
||||
|
||||
|
|
|
@ -32,15 +32,18 @@ public class MixinClassloader extends URLClassLoader {
|
|||
throw new ClassNotFoundException(name);
|
||||
}
|
||||
|
||||
synchronized (getClassLoadingLock(name)) {
|
||||
return defineClass(name, bytes, 0, bytes.length);
|
||||
}
|
||||
} catch (IOException aa) {
|
||||
throw new ClassNotFoundException(name, aa);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public byte[] getClassBytes(String name) throws IOException {
|
||||
String binName = name.replace(".", "/");
|
||||
String path = binName.concat(".class");
|
||||
String path = name.replace(".", "/").concat(".class");
|
||||
synchronized (getClassLoadingLock(name)) {
|
||||
try (InputStream in = getResourceAsStream(path)) {
|
||||
if (in == null)
|
||||
return null;
|
||||
|
@ -48,3 +51,4 @@ public class MixinClassloader extends URLClassLoader {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue