mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 09:34:46 +00:00
Scripted Skin Overlay render and packet sending fixes.
This commit is contained in:
1 parent
a18c05714c
commit
522b5b884a
4 files changed
+25
-11
No files matched your search
@@ -14,6 +14,7 @@ import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.inventory.ContainerPlayer;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.WorldServer;
|
||||
@@ -439,6 +440,12 @@ public class ScriptPlayerEventHandler {
|
||||
}
|
||||
|
||||
PlayerDataController.instance.getPlayerData(event.player).skinOverlays.updateClient();
|
||||
for (Object obj : MinecraftServer.getServer().getConfigurationManager().playerEntityList) {
|
||||
EntityPlayer player = (EntityPlayer) obj;
|
||||
if (player.getEntityData().hasKey("SkinOverlayData")) {
|
||||
PlayerDataController.instance.getPlayerData(player).skinOverlays.updateClient();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user