Merge pull request #4 from D-Cysteine/1.7.10-krypt

Update to latest Forestry API
This commit is contained in:
Martin Robertz authored and GitHub committed 2021-08-14 15:41:30 +02:00
commit d2a3b91fe0
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
version_major=2
version_minor=5
version_rev=5-GTNH
version_rev=6-GTNH
version_forestry=4.2.+
version_botania=r1.8-248
@@ -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;
@@ -28,7 +29,7 @@ public class MoonPhaseMutationBonus 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 this.mutationBonus;
}
@@ -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;
}