DEV overlay packet fixes

This commit is contained in:
Luis C.M committed 2022-06-15 01:38:51 -05:00
1 parent eb3dd66871
commit a18c05714c
2 files changed
+5 -1

No files matched your search

@@ -437,6 +437,8 @@ public class ScriptPlayerEventHandler {
if (quest != null) {
NoppesUtilPlayer.sendTrackedQuestData((EntityPlayerMP) event.player, quest);
}
PlayerDataController.instance.getPlayerData(event.player).skinOverlays.updateClient();
}
}
@@ -286,7 +286,9 @@ public class PacketHandlerClient extends PacketHandlerServer{
else if(type == EnumPacketClient.PLAYER_UPDATE_SKIN_OVERLAYS) {
EntityPlayer sendingPlayer = Minecraft.getMinecraft().theWorld.getPlayerEntityByName(Server.readString(buffer));
NBTTagCompound compound = Server.readNBT(buffer);
NoppesUtil.updateSkinOverlayData(sendingPlayer, compound);
if (sendingPlayer != null) {
NoppesUtil.updateSkinOverlayData(sendingPlayer, compound);
}
}
else if(type == EnumPacketClient.DISABLE_MOUSE_INPUT) {
long length = buffer.readLong();