Fix class name in asm transformer

This commit is contained in:
JFronny 2021-08-26 23:39:04 +02:00
parent b336a8cb36
commit 9809602b7f
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5
2 changed files with 1 additions and 2 deletions

View File

@ -98,7 +98,6 @@ public class Respackopts implements ClientModInitializer {
} catch (IOException e) {
LOGGER.error("Could not initialize config directory", e);
}
//if (DASHLOADER_PRESENT) DashLoaderCompat.hookDashLoader();
if (FabricLoader.getInstance().isDevelopmentEnvironment())
SAVE_ACTIONS.add(() -> LOGGER.info("Save"));
SAVE_ACTIONS.add(() -> {

View File

@ -93,7 +93,7 @@ public class Plugin implements IMixinConfigPlugin {
boolean found = false;
for (MethodNode method : klass.methods) {
if (method.name.equals("reload")) {
method.instructions.insert(new MethodInsnNode(Opcodes.INVOKESTATIC, "io/gitlab/jfronny/respackopts/integration/dashloader/DashLoaderCompat", "injection", "()V"));
method.instructions.insert(new MethodInsnNode(Opcodes.INVOKESTATIC, "io/gitlab/jfronny/respackopts/integration/DashLoaderCompat", "injection", "()V"));
found = true;
}
}