Trying to figure out a custom skin rendering issue.

This commit is contained in:
JitseB 2018-04-23 13:34:35 +02:00
parent 5139b29f7c
commit eb150bf160
2 changed files with 4 additions and 2 deletions

View File

@ -39,6 +39,8 @@ public class PacketListener {
@Override
public Object onPacketInAsync(Player player, Channel channel, Object packet) {
// Todo: Remove this debug message.
Bukkit.broadcastMessage("Class:" + packet.getClass().getName());
if (packetPlayInUseEntityClazz.isInstance(packet)) {
NPC npc = NPCManager.getAllNPCs().stream().filter(

View File

@ -82,9 +82,9 @@ public class NPC_V1_12_R1 extends NPC {
hologram.spawn(player);
// Todo: Test this new delay speed (custom skin render issue).
Bukkit.getScheduler().runTaskLater(plugin, () ->
playerConnection.sendPacket(packetPlayOutPlayerInfoRemove), 5);
playerConnection.sendPacket(packetPlayOutPlayerInfoRemove), 10);
}
@Override