AR - TR:Nightmares love skill fix
Modby miskosiska
Fixes two crashes in Tensura Reincarnated: Nightmare — LoveSkill NoSuchMethodError and ManasTestTheory bad Personality enum values.
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
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
ChatLagRemover
Removes the laggs that sometimes come when a message comes in chat.
Joe's Bizarre Clothing
Adds Cosmetic Items from JoJo's Bizarre Adventure to minecraft.
StructureManagerConcurrentFix
Fix `ConcurrentModificationException` in `StructureManager#get` method
StructureSpawn
Allows to define new structures and relocate spawn
Protect My Pets!
Adds the Golden Tag, a special tag to give to your pets to make them invincible as long as the tag has durability.
SCP-594, Electric Sheep
Not every sheep is harmless, some carry a dangerous charge.