Description
SuperWithJava25
MC 1.7.10 // JAVA 21+ FIX
makes fisk's mod actually boot on modern java so i can play
tl;dr why it crashes
fisk's mod calls jdk.nashorn for hero JS packs. oracle deleted nashorn in java 15. https://openjdk.org/jeps/372 and game goes boom:
Caused by: java.lang.ClassNotFoundException: Class bytes are null for jdk.nashorn.api.scripting.NashornScriptEngineFactory
what i did instead of rewriting fisk's mod
- shaded standalone org.openjdk.nashorn:nashorn-core into the jar
- wrote a lazy ASM transformer to catch com.fiskmods.heroes.* at boot
- replaces all string/type refs from jdk.nashorn -> org.openjdk.nashorn in memory so it just works
optimization stuff
if you want to optimize minecraft 1.7.10, check out this guide:
Minecraft 1.7.10 Optimization Guide
requirements or whatever
1.7.10 / Forge 1614+ / Java 21-25 (LWJGL3ify) / Fisk's Superheroes 2.4.0+
works on both client and server (just put it in /mods).
install
- drop jar in mods/
- launch game
- profit
why this exists
was working on advanced lightsabers rewrite structure generation, got annoyed, made this in like 20 minutes to procrastinate. also rewriting transformers mod eventually. maybe.
// ≈ "works on my machine."
