mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 07:17:58 +01:00
Change criterion check to an OR for tribe joins
This commit is contained in:
parent
fc5fec106a
commit
708f9191a8
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,7 @@ import net.minecraft.advancement.AdvancementCriterion;
|
|||
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;
|
||||
|
@ -67,6 +68,7 @@ public class UAdvancementsProvider extends FabricAdvancementProvider {
|
|||
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");
|
||||
|
|
Loading…
Reference in a new issue