Skip to content

Commit

Permalink
Update YmpeInfestationCriterion.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyces committed Apr 3, 2024
1 parent 3bdce1a commit 8d4c817
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.google.gson.JsonObject;
import com.mojang.serialization.DataResult;
import com.mojang.serialization.JsonOps;
import moriyashiine.aylyth.common.registry.ModComponents;
import moriyashiine.aylyth.common.registry.ModEntityComponents;
import moriyashiine.aylyth.common.util.AylythUtil;
import net.minecraft.advancement.criterion.AbstractCriterion;
import net.minecraft.advancement.criterion.AbstractCriterionConditions;
Expand Down Expand Up @@ -47,7 +47,7 @@ public static Conditions create(IntProvider stage) {
}

public boolean matches(ServerPlayerEntity player) {
return ModComponents.YMPE_INFESTATION.maybeGet(player).map(component -> stage.getMin() <= component.getStage() && stage.getMax() >= component.getStage()).orElse(false);
return ModEntityComponents.YMPE_INFESTATION.maybeGet(player).map(component -> stage.getMin() <= component.getStage() && stage.getMax() >= component.getStage()).orElse(false);
}

@Override
Expand Down

0 comments on commit 8d4c817

Please sign in to comment.