From 39597a0a1c94f3716914562b24a51e6aa3702f58 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 13 Oct 2024 18:18:50 +0100 Subject: [PATCH] Change criterion check to an OR for tribe joins --- .../unicopia/datagen/providers/UAdvancementsProvider.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/datagen/providers/UAdvancementsProvider.java b/src/main/java/com/minelittlepony/unicopia/datagen/providers/UAdvancementsProvider.java index 36b5e5495..51d5deb37 100644 --- a/src/main/java/com/minelittlepony/unicopia/datagen/providers/UAdvancementsProvider.java +++ b/src/main/java/com/minelittlepony/unicopia/datagen/providers/UAdvancementsProvider.java @@ -22,6 +22,7 @@ import net.minecraft.advancement.AdvancementEntry; import net.minecraft.advancement.AdvancementFrame; import net.minecraft.advancement.AdvancementRequirements; +import net.minecraft.advancement.AdvancementRequirements.CriterionMerger; import net.minecraft.advancement.AdvancementRewards; import net.minecraft.advancement.criterion.ConsumeItemCriterion; import net.minecraft.advancement.criterion.Criteria; @@ -74,6 +75,7 @@ private AdvancementDisplayBuilder.Parent createTribeRootAdvancement(WrapperLooku for (Race r : extra) { builder.criterion("be_" + r.getId().getPath(), UCriteria.PLAYER_CHANGE_RACE.create(new RaceChangeCriterion.Conditions(Optional.empty(), r))); } + builder.criteriaMerger(CriterionMerger.OR); } return builder.build(consumer, race.getId().getPath() + "_route");