Skip to content

Commit

Permalink
Change criterion check to an OR for tribe joins
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Oct 13, 2024
1 parent fc5fec1 commit 708f919
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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;
Expand Down Expand Up @@ -67,6 +68,7 @@ private AdvancementDisplayBuilder.Parent createTribeRootAdvancement(Consumer<Adv
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");
Expand Down

0 comments on commit 708f919

Please sign in to comment.