Carry Mechanics (1.0.2)
Curse Maven Snippet
What's new
v1.0.2 — Fix: hard crash when toggling third-person view while carrying
Fixes the client hard crash (IllegalStateException: Pose stack not empty) and the game freeze that occurred when pressing F5 while carrying a block, mob, animal or villager.
Fix
- Pose stack corruption: carried objects were rendered directly on the level renderer's shared pose stack. If the render of the carried object threw an exception (which can happen while the mob/entity renderer is still work-in-progress), the stack was left unbalanced and the very next frame crashed the game (
Pose stack not empty). Carried objects are now rendered on a throwaway localPoseStack, so a render failure can never corrupt the game's pose stack. This also stops the render-thread error loop that made the game slow to a crawl while carrying. - Diagnostics: the render error is no longer swallowed silently — it is logged once per session in
logs/latest.logwith the full stack trace, making it much easier to report and fix the remaining WIP mob rendering issues.
Notes
- Mob/entity rendering is still work-in-progress: the carried entity may not be visible yet, but the game no longer crashes or freezes.
- Carrying, stacking and placing blocks and entities work as in
1.0.1.
This mod has no additional files