A client-side fix for MTR (Minecraft Transit Railway) 3.2.2+ when used with MrCrayfish's Framework on Minecraft 1.20.1.
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
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.
- Install Minecraft Forge for 1.20.1 (Recommend 47.4.0+).
- Place this mod jar in your
modsfolder along with MTR and Framework.
Run ./gradlew build to produce the jar.