Animations now continue where they should be when players rejoin a world/server.

This commit is contained in:
Luis C.M committed 2024-03-24 18:55:03 -05:00
1 parent cee52ec9e0
commit a5ed14183e
7 files changed
+117 -34

No files matched your search

+4 -2
View File
@@ -95,8 +95,10 @@ public class CommonProxy implements IGuiHandler {
@SideOnly(Side.CLIENT)
private boolean clientRemoveAnimation(Entity entity) {
return Minecraft.getMinecraft().currentScreen == null
&& !Minecraft.getMinecraft().theWorld.loadedEntityList.contains(entity);
if (Minecraft.getMinecraft().currentScreen == null && !Minecraft.getMinecraft().theWorld.loadedEntityList.contains(entity)) {
return true;
}
return false;
}
public PlayerData getPlayerData(EntityPlayer player) {