Added player rotations/pivots/animations, similar to NPC's.

This commit is contained in:
Luis C.M committed 2023-01-01 23:50:38 -06:00
1 parent d638c98d81
commit 51263a9f82
13 files changed
+726 -10

No files matched your search

@@ -292,6 +292,13 @@ public class PacketHandlerClient extends PacketHandlerServer{
NoppesUtil.updateSkinOverlayData(sendingPlayer, compound);
}
}
else if(type == EnumPacketClient.PLAYER_UPDATE_MODEL_DATA) {
EntityPlayer sendingPlayer = Minecraft.getMinecraft().theWorld.getPlayerEntityByName(Server.readString(buffer));
NBTTagCompound compound = Server.readNBT(buffer);
if (sendingPlayer != null) {
NoppesUtil.updatePlayerModelData(sendingPlayer, compound);
}
}
else if(type == EnumPacketClient.DISABLE_MOUSE_INPUT) {
long length = buffer.readLong();
try {