Fix addFutureDisguise
This commit is contained in:
		| @@ -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); | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user