Update other potential use cases

This commit is contained in:
libraryaddict 2021-01-15 23:40:43 +13:00
parent bebadf9bc8
commit a286773c04

View File

@ -451,6 +451,10 @@ public class FlagWatcher {
try { try {
for (Player player : DisguiseUtilities.getPerverts(getDisguise())) { for (Player player : DisguiseUtilities.getPerverts(getDisguise())) {
if (getDisguise().isPlayerDisguise() && LibsDisguises.getInstance().getSkinHandler().isSleeping(player, (PlayerDisguise) getDisguise())) {
continue;
}
for (PacketContainer packet : packets) { for (PacketContainer packet : packets) {
ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet); ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);
} }