diff --git a/src/main/java/org/betterx/worlds/together/tag/v3/TagRegistry.java b/src/main/java/org/betterx/worlds/together/tag/v3/TagRegistry.java index 3c19097d..5c145dd3 100644 --- a/src/main/java/org/betterx/worlds/together/tag/v3/TagRegistry.java +++ b/src/main/java/org/betterx/worlds/together/tag/v3/TagRegistry.java @@ -1,5 +1,6 @@ package org.betterx.worlds.together.tag.v3; +import org.betterx.bclib.BCLib; import org.betterx.bclib.interfaces.TriConsumer; import org.betterx.worlds.together.WorldsTogether; @@ -309,9 +310,12 @@ public class TagRegistry { } public void apply(Map> tagsMap) { - //this.isFrozen = true; - this.forEach((id, ids) -> apply(id, tagsMap.computeIfAbsent(id, key -> Lists.newArrayList()), ids)); + if (BCLib.isDatagen()) { + this.forEach((id, ids) -> apply(id, tagsMap.computeIfAbsent(id, key -> Lists.newArrayList()), ids)); + } else { + tags.clear(); + } } private static List apply(