Malstone x Fantasy Ending Compatibility

Fixes the StackOverflowError crash between Malstone and Fantasy Ending on Forge 1.20.1.
Back to Files

malstone_fe_compat-1.1.0.jar

File namemalstone_fe_compat-1.1.0.jar
Uploader
wdlpiaoyiwdlpiaoyi
Uploaded
Nov 2, 2026
Downloads
43
Size
26.2 KB
Mod Loaders
Forge
File ID
9406424
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:malstone-x-fantasy-ending-compatibility-1694887:9406424")

Learn more about Curse Maven

What's new

Use this instead of 1.0.0. 1.0.0 only fixed one of two StackOverflowError recursions between Malstone and Fantasy Ending.

Fixed

  • feInvulnerable recursion (new) - Fantasy Ending's overwritten Player#getHealth() calls getMaxHealth() directly while the player's feInvulnerable flag is set, bypassing the 1.0.0 guard and recursing through Malstone's getMaxHealth return callback until StackOverflowError: Ticking entity.
  • The 1.0.0 special_getHealth recursion stays fixed.

Changes

  • New PlayerGetHealthMixin: per-instance re-entrancy guard on Player#getHealth(); the fix no longer depends on the getMaxHealth() call site or on mixin priority.
  • Both guards now share MaxHealthRecursionGuard; outer calls still run normally, so Malstone's ToughBlood bonus is preserved.
  • Guards apply only when both malstone and fantasy_ending are loaded.

Requirements

  • Minecraft 1.20.1, Forge 47.x
  • Malstone (tested with 1.0.6.0)
  • Fantasy Ending (tested with 1.20.1-2.7.20)

Remove any older malstone_fe_compat jar before adding this one.

This mod has no additional files