mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 13:49:05 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user