Skip to content

Commit

Permalink
fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecdcaeb committed Sep 14, 2024
1 parent e1af617 commit 438b572
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (useMirror) apply from: "mirror.gradle"
apply plugin: "net.minecraftforge.gradle.forge"
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.

version = "1.6 for 1.12.2-1.8.8"
version = "1.7 for 1.12.2-1.8.8"
group = "com.ideallandframework.silent_assassin" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "redirectionor"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public RedirectionorContainer(){
metadata.modId=Redirectionor.MODID;
metadata.name="Redirectionor";
metadata.description="Redirectionor is the implementation of this concept, specifically for the Direction enum class stuff, to reduce the required memory of the game.";
metadata.version="1.6 for 1.12.2-1.8.8";
metadata.version="1.7 for 1.12.2-1.8.8";
metadata.url="https://www.curseforge.com/minecraft/mc-mods/redirectionor";
metadata.logoFile="/icon_redirectionor.png";
metadata.authorList.add("MCTeamPotato");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public byte[] transform(String name, String transformedName, byte[] basicClass)
hook.add(new VarInsnNode(Opcodes.ALOAD, 1));
hook.add(new MethodInsnNode(Opcodes.INVOKESTATIC, "com/Hileb/teampotato/redirectionor/RedirectionorConfig$CrashHandler", "handleCrash", "(Lnet/minecraft/crash/CrashReport;)V", false));
methodNode.instructions.insert(hook);
return new LaunchClassWriter(classReader, ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES).toByteArray();
LaunchClassWriter classWriter = LaunchClassWriter(classReader, ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);
cn.accept(classWriter);
return classWriter.toByteArray();
}
}
}
Expand Down

0 comments on commit 438b572

Please sign in to comment.