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

@@ -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();