diff --git a/src/main/java/ac/grim/grimac/utils/data/tags/SyncedTag.java b/src/main/java/ac/grim/grimac/utils/data/tags/SyncedTag.java index c432e2b68a..47bae92d4c 100644 --- a/src/main/java/ac/grim/grimac/utils/data/tags/SyncedTag.java +++ b/src/main/java/ac/grim/grimac/utils/data/tags/SyncedTag.java @@ -3,7 +3,9 @@ import com.github.retrooper.packetevents.resources.ResourceLocation; import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerTags; +import java.util.Collections; import java.util.HashSet; +import java.util.IdentityHashMap; import java.util.Set; import java.util.function.Function; @@ -15,7 +17,7 @@ public final class SyncedTag { private SyncedTag(ResourceLocation location, Function remapper, Set defaultValues) { this.location = location; - this.values = new HashSet<>(); + this.values = Collections.newSetFromMap(new IdentityHashMap<>()); this.remapper = remapper; this.values.addAll(defaultValues); }