Merge branch 'animation-events' into dev

This commit is contained in:
Luis C.M. committed 2024-05-10 20:35:33 -05:00
commit 13987bdc39
33 files changed
+783 -209

No files matched your search

@@ -380,8 +380,14 @@ public class PacketHandlerClient extends PacketHandlerServer{
}
animationData.setAnimation(ClientCacheHandler.animationCache.get(animationId));
animationData.readFromNBT(compound);
Client.sendData(EnumPacketServer.CacheAnimation, animationId);
animationData.viewReadFromNBT(compound);
if (compound.hasKey("Frame")) {
animationData.animation.readFromNBT(compound.getCompoundTag("Animation"));
animationData.animation.jumpToFrameAtTime(compound.getInteger("Frame"), compound.getInteger("Time"));
} else if (compound.hasKey("Animation")) {
Client.sendData(EnumPacketServer.CacheAnimation, animationId);
}
}
}
else if(type == EnumPacketClient.DISABLE_MOUSE_INPUT) {