Update to latest Forestry API

This commit is contained in:
D-Cysteine committed 2021-08-12 20:54:58 -06:00
1 parent 04ea5e8862
commit a370c61948
3 files changed
+5 -3

No files matched your search

@@ -2,6 +2,7 @@ package magicbees.bees;
import net.minecraft.world.World;
import forestry.api.core.IClimateProvider;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IMutationCondition;
@@ -24,7 +25,7 @@ public class MoonPhaseMutationRestriction implements IMutationCondition {
}
@Override
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1) {
public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1, IClimateProvider climate) {
if (MoonPhase.getMoonPhase(world).isBetween(this.moonPhaseStart, this.moonPhaseEnd)) {
return 1;
}