mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
Fix #306: Raintank fills in Desert biome
This commit is contained in:
1 parent
247cb0b336
commit
a9b72c85bd
1 file changed
+5
@@ -65,7 +65,10 @@ public class MachineRaintank extends TileBase implements ISidedInventory, ILiqui
|
||||
|
||||
resourceTank = new FilteredTank(Defaults.RAINTANK_TANK_CAPACITY, FluidRegistry.WATER);
|
||||
tankManager = new TankManager(resourceTank);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void validate() {
|
||||
// Raintanks in desert and snow biomes are useless
|
||||
if (worldObj != null) {
|
||||
BiomeGenBase biome = Utils.getBiomeAt(worldObj, xCoord, zCoord);
|
||||
@@ -74,6 +77,8 @@ public class MachineRaintank extends TileBase implements ISidedInventory, ILiqui
|
||||
isValidBiome = false;
|
||||
}
|
||||
}
|
||||
|
||||
super.validate();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user