Don't wrap disguises in synchronize set, fixes #478

This commit is contained in:
libraryaddict
2020-06-13 17:33:07 +12:00
parent e696ee3f4f
commit 142f1c277e

View File

@@ -399,7 +399,7 @@ public class DisguiseUtilities {
public static void addDisguise(UUID entityId, TargetedDisguise disguise) {
if (!getDisguises().containsKey(entityId)) {
getDisguises().put(entityId, Collections.synchronizedSet(new HashSet<>()));
getDisguises().put(entityId, new HashSet<>());
}
if ("a%%__USER__%%a".equals("a12345a") || (LibsPremium.getUserID().matches("[0-9]+") &&