replace Utils.getBiomeAt

This commit is contained in:
mezz committed 2015-05-25 01:28:27 -07:00
1 parent 4bff9e537e
commit 8f9c570dd0
7 files changed
+6 -10

No files matched your search

@@ -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 */
@@ -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;
}
@@ -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 */
@@ -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 extends EntityLiving> E createEntity(World world, Class<E> entityClass) {
if (!EntityList.classToStringMapping.containsKey(entityClass)) {
return null;
@@ -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);
}
@@ -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<ForgeDirection, List<FarmTarget>> createTargets(World world, Vect targetStart, final int allowedExtent, final int farmSizeNorthSouth, final int farmSizeEastWest) {
@@ -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;