Skip to content

A tiny Forge 1.20.1 client-side Mixin mod that patches MTR’s boat animation for MrCrayfish Framework compatibility.

License

Notifications You must be signed in to change notification settings

Hydroline/MTRBoatPatch

Repository files navigation

MTR Boat Patch

A client-side fix for MTR (Minecraft Transit Railway) 3.2.2+ when used with MrCrayfish's Framework on Minecraft 1.20.1.

The Issue

MTR uses a FakeBoat entity for rendering boat animations (like the ferry). In MTR 3.2.2, this entity is initialized with a null world/level. While this might process fine in vanilla rendering, MrCrayfish's Framework (and potentially other mods) hooks into entity creation or rendering and expects a valid level, causing a NullPointerException or "Pose stack not empty" crash.

Ref: Minecraft-Transit-Railway/Minecraft-Transit-Railway#764

The Fix

This mod uses a simple Mixin to inject the valid client level (Minecraft.getInstance().level) into the FakeBoat entity during its initialization, preventing the crash.

Installation

  1. Install Minecraft Forge for 1.20.1 (Recommend 47.4.0+).
  2. Place this mod jar in your mods folder along with MTR and Framework.

Development

Run ./gradlew build to produce the jar.

About

A tiny Forge 1.20.1 client-side Mixin mod that patches MTR’s boat animation for MrCrayfish Framework compatibility.

Resources

License

Stars

Watchers

Forks

Languages