Fixed animations being stuck. Animations should now properly continue where they left off when a player rejoins a server/ singleplayer world.

This commit is contained in:
Luis C.M committed 2024-03-29 16:37:31 -05:00
1 parent fd4a6d0a2c
commit 266a6515e5
7 files changed
+171 -65

No files matched your search

@@ -32,7 +32,7 @@ public class ClientTickHandler{
@SubscribeEvent(priority = EventPriority.LOWEST)
public void onClientTick(TickEvent.ClientTickEvent event){
Minecraft mc = Minecraft.getMinecraft();
if ((this.prevWorld == null || mc.theWorld == null) && this.prevWorld != mc.theWorld) {
if (mc.theWorld != null && this.prevWorld != mc.theWorld) {
ClientCacheHandler.clearCache();
this.prevWorld = mc.theWorld;
}