Description
A lightweight JS coremod patch for Tensura Reincarnated: Nightmare (trnightmare) that fixes two runtime crashes:
1. LoveSkill.onBeingDamaged NoSuchMethodError
- The original code calls java.util.Random methods that fail due to SRG mapping issues at runtime.
- This fix replaces all java.util.Random usage with ThreadLocalRandom.current(), which bypasses SRG remapping entirely.
2. ManasTestTheory.onTick IllegalArgumentException
- Saved world data can contain invalid Personality enum values that cause a crash when the skill ticks.
- This fix wraps the onTick method body in a try-catch to gracefully suppress bad enum lookups from corrupted or outdated save data.
Requires: Tensura Reincarnated: Nightmare (trnightmare)
Minecraft 1.19.2 — Forge


