bte_optimization_fixes-1.41.0.jar
Curse Maven Snippet
What's new
Fix client crashes from Dungeons Gear Lucky Explorer and potion enchantments
Lucky Explorer (boots) runs its PlayerTickEvent handler on both sides
and, every 6 blocks walked, casts player.level to ServerLevel to roll
its loot. On the client that is a ClientLevel, so the game crashes with
"Ticking entity: ClientLevel cannot be cast to ServerLevel". The client
checkpoint starts at 0 on join, so a player wearing those boots crashes
again right after loading the world.
Surprise Gift and Food Reserves (helmets) do the same cast when a
healing potion is finished, and that event also fires on the client for
the local player.
Skip all three handlers on the client; the server still rolls the loot
and applies the effects as before.
This mod has no additional files