Run meta a tick later to try prevent a glimpse of player disguise
This commit is contained in:
parent
350a3aa9b5
commit
999c5f3f21
@ -261,7 +261,6 @@ public class PlayerSkinHandler implements Listener {
|
|||||||
.createPacket(entity.getEntityId(), watcher, true);
|
.createPacket(entity.getEntityId(), watcher, true);
|
||||||
|
|
||||||
ProtocolLibrary.getProtocolManager().sendServerPacket(player, metaPacket, false);
|
ProtocolLibrary.getProtocolManager().sendServerPacket(player, metaPacket, false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addTeleport(Player player, PlayerSkin skin) throws InvocationTargetException {
|
private void addTeleport(Player player, PlayerSkin skin) throws InvocationTargetException {
|
||||||
@ -342,7 +341,17 @@ public class PlayerSkinHandler implements Listener {
|
|||||||
|
|
||||||
if (skin.isSleepPackets()) {
|
if (skin.isSleepPackets()) {
|
||||||
addTeleport(player, skin);
|
addTeleport(player, skin);
|
||||||
addMetadata(player, skin);
|
|
||||||
|
new BukkitRunnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
try {
|
||||||
|
addMetadata(player, skin);
|
||||||
|
} catch (InvocationTargetException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}.runTask(LibsDisguises.getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DisguiseConfig.isArmorstandsName() && disguise.isNameVisible() && disguise.getMultiNameLength() > 0) {
|
if (DisguiseConfig.isArmorstandsName() && disguise.isNameVisible() && disguise.getMultiNameLength() > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user