Trying to figure out a custom skin rendering issue.
This commit is contained in:
@@ -39,6 +39,8 @@ public class PacketListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object onPacketInAsync(Player player, Channel channel, Object packet) {
|
public Object onPacketInAsync(Player player, Channel channel, Object packet) {
|
||||||
|
// Todo: Remove this debug message.
|
||||||
|
Bukkit.broadcastMessage("Class:" + packet.getClass().getName());
|
||||||
|
|
||||||
if (packetPlayInUseEntityClazz.isInstance(packet)) {
|
if (packetPlayInUseEntityClazz.isInstance(packet)) {
|
||||||
NPC npc = NPCManager.getAllNPCs().stream().filter(
|
NPC npc = NPCManager.getAllNPCs().stream().filter(
|
||||||
|
|||||||
@@ -82,9 +82,9 @@ public class NPC_V1_12_R1 extends NPC {
|
|||||||
|
|
||||||
hologram.spawn(player);
|
hologram.spawn(player);
|
||||||
|
|
||||||
|
// Todo: Test this new delay speed (custom skin render issue).
|
||||||
Bukkit.getScheduler().runTaskLater(plugin, () ->
|
Bukkit.getScheduler().runTaskLater(plugin, () ->
|
||||||
playerConnection.sendPacket(packetPlayOutPlayerInfoRemove), 5);
|
playerConnection.sendPacket(packetPlayOutPlayerInfoRemove), 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user