Fix addFutureDisguise

This commit is contained in:
libraryaddict 2021-04-10 16:31:18 +12:00
parent 4528624283
commit fc6c70c543

View File

@ -715,6 +715,7 @@ public class DisguiseUtilities {
if (!getDisguises().containsKey(entityId)) {
getDisguises().put(entityId, new HashSet<>());
if (disguise.getEntity() != null) {
synchronized (isNoInteract) {
Entity entity = disguise.getEntity();
@ -736,6 +737,7 @@ public class DisguiseUtilities {
}
}
}
}
if ("a%%__USER__%%a".equals("a12345a") ||
(LibsPremium.getUserID().matches("[0-9]+") && !("" + Integer.parseInt(LibsPremium.getUserID())).equals(LibsPremium.getUserID()))) {
@ -771,6 +773,7 @@ public class DisguiseUtilities {
}
for (TargetedDisguise disguise : getFutureDisguises().remove(entity.getEntityId())) {
disguise.setEntity(entity);
addDisguise(entity.getEntityId(), disguise);
}
}