Fix addFutureDisguise
This commit is contained in:
parent
4528624283
commit
fc6c70c543
@ -715,6 +715,7 @@ public class DisguiseUtilities {
|
|||||||
if (!getDisguises().containsKey(entityId)) {
|
if (!getDisguises().containsKey(entityId)) {
|
||||||
getDisguises().put(entityId, new HashSet<>());
|
getDisguises().put(entityId, new HashSet<>());
|
||||||
|
|
||||||
|
if (disguise.getEntity() != null) {
|
||||||
synchronized (isNoInteract) {
|
synchronized (isNoInteract) {
|
||||||
Entity entity = disguise.getEntity();
|
Entity entity = disguise.getEntity();
|
||||||
|
|
||||||
@ -736,6 +737,7 @@ public class DisguiseUtilities {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ("a%%__USER__%%a".equals("a12345a") ||
|
if ("a%%__USER__%%a".equals("a12345a") ||
|
||||||
(LibsPremium.getUserID().matches("[0-9]+") && !("" + Integer.parseInt(LibsPremium.getUserID())).equals(LibsPremium.getUserID()))) {
|
(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())) {
|
for (TargetedDisguise disguise : getFutureDisguises().remove(entity.getEntityId())) {
|
||||||
|
disguise.setEntity(entity);
|
||||||
addDisguise(entity.getEntityId(), disguise);
|
addDisguise(entity.getEntityId(), disguise);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user