Fixed NBT issue with player overlays.

This commit is contained in:
Luis C.M committed 2022-05-24 00:36:47 -05:00
1 parent 82938fe5cd
commit 532180f00f
2 files changed
+2 -4

No files matched your search

@@ -146,9 +146,7 @@ public class PacketHandlerServer{
}
public void updateSkinOverlays(EntityPlayerMP player) {
NBTTagCompound data = new NBTTagCompound();
data.setTag("SkinOverlayData",player.getEntityData().getTagList("SkinOverlayData",10));
Server.sendToAll(EnumPacketClient.PLAYER_UPDATE_SKIN_OVERLAYS, player.getEntityId(), data);
PlayerDataController.instance.getPlayerData(player).skinOverlays.updateClient();
}
private void getScriptsEnabled(EnumPacketServer type, ByteBuf buffer, EntityPlayerMP player) throws IOException {