mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 07:35:47 +00:00
Fix #937 Multifarm detects rain in rainless biomes
This commit is contained in:
1 parent
9a745b10d7
commit
7a45ce35a3
2 files changed
+5
-3
No files matched your search
@@ -275,7 +275,7 @@ public class FarmController extends RectangularMultiblockControllerBase implemen
|
||||
|
||||
@Override
|
||||
protected boolean updateServer(int tickCount) {
|
||||
hydrationManager.updateServer(worldObj);
|
||||
hydrationManager.updateServer(worldObj, getBiome());
|
||||
|
||||
if (updateOnInterval(20)) {
|
||||
inventory.drainCan(tankManager);
|
||||
|
||||
@@ -14,7 +14,9 @@ import java.io.IOException;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
|
||||
import forestry.api.core.BiomeHelper;
|
||||
import forestry.api.core.INBTTagable;
|
||||
import forestry.core.network.DataInputStreamForestry;
|
||||
import forestry.core.network.DataOutputStreamForestry;
|
||||
@@ -35,8 +37,8 @@ public class FarmHydrationManager implements IFarmLedgerDelegate, INBTTagable, I
|
||||
this.climatised = climatised;
|
||||
}
|
||||
|
||||
public void updateServer(World world) {
|
||||
if (world.isRaining()) {
|
||||
public void updateServer(World world, BiomeGenBase biome) {
|
||||
if (world.isRaining() && BiomeHelper.canRainOrSnow(biome)) {
|
||||
if (hydrationDelay > 0) {
|
||||
hydrationDelay--;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user