diff --git a/src/main/java/forestry/apiculture/gadgets/TileAlvearyPlain.java b/src/main/java/forestry/apiculture/gadgets/TileAlvearyPlain.java index ea0592edb..9ef234f68 100755 --- a/src/main/java/forestry/apiculture/gadgets/TileAlvearyPlain.java +++ b/src/main/java/forestry/apiculture/gadgets/TileAlvearyPlain.java @@ -90,7 +90,7 @@ public class TileAlvearyPlain extends TileAlveary implements ISidedInventory, IB } private void setBiomeInformation() { - this.biome = Utils.getBiomeAt(worldObj, xCoord, zCoord); + this.biome = worldObj.getBiomeGenForCoordsBody(xCoord, zCoord); } /* LOADING & SAVING */ diff --git a/src/main/java/forestry/apiculture/gadgets/TileBeehouse.java b/src/main/java/forestry/apiculture/gadgets/TileBeehouse.java index b9166f136..129c19d64 100755 --- a/src/main/java/forestry/apiculture/gadgets/TileBeehouse.java +++ b/src/main/java/forestry/apiculture/gadgets/TileBeehouse.java @@ -249,7 +249,7 @@ public class TileBeehouse extends TileBase implements IBeeHousing, IClimatised { public void updateBiome() { if (worldObj != null) { - BiomeGenBase biome = Utils.getBiomeAt(worldObj, xCoord, zCoord); + BiomeGenBase biome = worldObj.getBiomeGenForCoordsBody(xCoord, zCoord); if (biome != null) { this.biome = biome; } diff --git a/src/main/java/forestry/arboriculture/gadgets/TileLeaves.java b/src/main/java/forestry/arboriculture/gadgets/TileLeaves.java index c33782844..98b6a65a8 100755 --- a/src/main/java/forestry/arboriculture/gadgets/TileLeaves.java +++ b/src/main/java/forestry/arboriculture/gadgets/TileLeaves.java @@ -91,7 +91,7 @@ public class TileLeaves extends TileTreeContainer implements IPollinatable, IFru if (worldObj == null) { return; } - biome = Utils.getBiomeAt(worldObj, xCoord, zCoord); + biome = worldObj.getBiomeGenForCoordsBody(xCoord, zCoord); } /* SAVING & LOADING */ diff --git a/src/main/java/forestry/core/utils/Utils.java b/src/main/java/forestry/core/utils/Utils.java index 56176481e..613e74e7c 100755 --- a/src/main/java/forestry/core/utils/Utils.java +++ b/src/main/java/forestry/core/utils/Utils.java @@ -201,10 +201,6 @@ public class Utils { } - public static BiomeGenBase getBiomeAt(World world, int x, int z) { - return world.getBiomeGenForCoordsBody(x, z); - } - private static E createEntity(World world, Class entityClass) { if (!EntityList.classToStringMapping.containsKey(entityClass)) { return null; diff --git a/src/main/java/forestry/factory/gadgets/MachineRaintank.java b/src/main/java/forestry/factory/gadgets/MachineRaintank.java index 9bb02b0f8..19a473214 100755 --- a/src/main/java/forestry/factory/gadgets/MachineRaintank.java +++ b/src/main/java/forestry/factory/gadgets/MachineRaintank.java @@ -67,7 +67,7 @@ public class MachineRaintank extends TileBase implements ISidedInventory, ILiqui public void validate() { // Raintanks in desert biomes are useless if (worldObj != null) { - BiomeGenBase biome = Utils.getBiomeAt(worldObj, xCoord, zCoord); + BiomeGenBase biome = worldObj.getBiomeGenForCoordsBody(xCoord, zCoord); isValidBiome = BiomeHelper.canRainOrSnow(biome); setErrorCondition(!isValidBiome, EnumErrorCode.INVALIDBIOME); } diff --git a/src/main/java/forestry/farming/gadgets/TileFarmPlain.java b/src/main/java/forestry/farming/gadgets/TileFarmPlain.java index 011d66610..f18d01049 100755 --- a/src/main/java/forestry/farming/gadgets/TileFarmPlain.java +++ b/src/main/java/forestry/farming/gadgets/TileFarmPlain.java @@ -216,7 +216,7 @@ public class TileFarmPlain extends TileFarm implements IFarmHousing, ISocketable } private void setBiomeInformation() { - this.biome = Utils.getBiomeAt(worldObj, xCoord, zCoord); + this.biome = worldObj.getBiomeGenForCoordsBody(xCoord, zCoord); } private static TreeMap> createTargets(World world, Vect targetStart, final int allowedExtent, final int farmSizeNorthSouth, final int farmSizeEastWest) { diff --git a/src/main/java/forestry/lepidopterology/genetics/Butterfly.java b/src/main/java/forestry/lepidopterology/genetics/Butterfly.java index 6aff8473f..d618778ae 100755 --- a/src/main/java/forestry/lepidopterology/genetics/Butterfly.java +++ b/src/main/java/forestry/lepidopterology/genetics/Butterfly.java @@ -135,7 +135,7 @@ public class Butterfly extends IndividualLiving implements IButterfly { return false; } - BiomeGenBase biome = Utils.getBiomeAt(world, (int) x, (int) z); + BiomeGenBase biome = world.getBiomeGenForCoordsBody((int) x, (int) z); if (getGenome().getPrimary().getSpawnBiomes().size() > 0) { boolean noneMatched = true;