From 142f1c277efcf331bd5c2a7c894a15170a03bff1 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 13 Jun 2020 17:33:07 +1200 Subject: [PATCH] Don't wrap disguises in synchronize set, fixes #478 --- .../me/libraryaddict/disguise/utilities/DisguiseUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index a44e698a..8bc6dc9d 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -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]+") &&