Malstone x Fantasy Ending Compatibility

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

Malstone x Fantasy Ending Compatibility

A compatibility patch for Minecraft Forge 1.20.1 that fixes the game-crashing conflict between Malstone and Fantasy Ending.

The problem

When both mods are installed, creating a world crashes with a java.lang.StackOverflowError, caused by an endless loop between getMaxHealth and getHealth.

The fix

Fantasy Ending routes every getHealth() call through EntityASMUtil#special_getHealth, which asks for getMaxHealth(). Malstone adds code to getMaxHealth() that calls Player#isAlive(), and vanilla isAlive() calls getHealth() again. The result is infinite recursion.

This patch adds a per-thread re-entrancy guard around the max-health lookup:

  • The first call behaves exactly as before, so Malstone's ToughBlood bonus still works.
  • Any nested call simply returns the vanilla max-health value instead of recursing forever.

The patch only activates when both Malstone and Fantasy Ending are installed. If either mod is missing, it does nothing.

Requirements

  • Minecraft 1.20.1
  • Forge 47.x
  • Malstone
  • Fantasy Ending

Notes

  • This is a client/server-side patch; install it on both sides if you play on a server.

Malstone x Fantasy Ending Compatibility Team

profile avatar
  • 3
    Projects
  • 410
    Downloads

More from wdlpiaoyi

  • Just Enough Hiding project image

    Just Enough Hiding

    Client-side utility that reveals hidden JEI/EMI content, records what hides it, and lets you manage your own hide list.

    • 146
    • November 13, 2026
  • FTB Quests: Prelude project image

    FTB Quests: Prelude

    Open the FTB Quests quest book outside a world: browse and edit local quests from the main menu, and view single-player save progress.

    • 121
    • October 5, 2026
  • Just Enough Hiding project image

    Just Enough Hiding

    Client-side utility that reveals hidden JEI/EMI content, records what hides it, and lets you manage your own hide list.

    • 146
    • November 13, 2026
  • FTB Quests: Prelude project image

    FTB Quests: Prelude

    Open the FTB Quests quest book outside a world: browse and edit local quests from the main menu, and view single-player save progress.

    • 121
    • October 5, 2026