aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/loaders
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2021-08-14 15:50:44 +0200
committerGitHub <noreply@github.com>2021-08-14 15:50:44 +0200
commitb8e7bce3d1730db515b98129aeaf113b7a089f79 (patch)
tree36bbc4537e72370b7055baa30fd4042d3c4c8519 /src/main/java/gregtech/loaders
parent5451998388b35d89d3496ae3e16694983a31f6cb (diff)
parent3ade6e9c5669fc03edb83b8ac28d73a86da9d3c7 (diff)
downloadGT5-Unofficial-b8e7bce3d1730db515b98129aeaf113b7a089f79.tar.gz
GT5-Unofficial-b8e7bce3d1730db515b98129aeaf113b7a089f79.tar.bz2
GT5-Unofficial-b8e7bce3d1730db515b98129aeaf113b7a089f79.zip
Merge pull request #639 from D-Cysteine/fix-bee-mutations
Update bee mutations to handle modified climate
Diffstat (limited to 'src/main/java/gregtech/loaders')
-rw-r--r--src/main/java/gregtech/loaders/misc/GT_Bees.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/gregtech/loaders/misc/GT_Bees.java b/src/main/java/gregtech/loaders/misc/GT_Bees.java
index 0e08ac3de6..1d8441e4d6 100644
--- a/src/main/java/gregtech/loaders/misc/GT_Bees.java
+++ b/src/main/java/gregtech/loaders/misc/GT_Bees.java
@@ -2,6 +2,7 @@ package gregtech.loaders.misc;
import cpw.mods.fml.common.Loader;
import forestry.api.apiculture.EnumBeeChromosome;
+import forestry.api.core.IClimateProvider;
import forestry.api.genetics.*;
import forestry.core.genetics.alleles.Allele;
import forestry.core.utils.StringUtil;
@@ -133,7 +134,7 @@ public class GT_Bees {
}
@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(world.provider.dimensionId == dimID)return 1;
return 0;
}
@@ -156,8 +157,8 @@ public class GT_Bees {
}
@Override
- public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0,IGenome genome1) {
- if(world.getBiomeGenForCoords(x, z).biomeID == biomeID) return 1;
+ public float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1, IClimateProvider climate) {
+ if(climate.getBiome().biomeID == biomeID) return 1;
return 0;
}