mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 22:34:33 +00:00
Clean up bee nocturnal and rain tolerance
This commit is contained in:
1 parent
6e3c28e07e
commit
92b1f85d84
14 files changed
+32
-37
No files matched your search
@@ -254,7 +254,7 @@ public class FarmController extends RectangularMultiblockControllerBase implemen
|
||||
|
||||
@Override
|
||||
protected boolean updateServer(int tickCount) {
|
||||
hydrationManager.updateServer(worldObj, getBiome());
|
||||
hydrationManager.updateServer(worldObj, getTopCenterCoord());
|
||||
|
||||
if (updateOnInterval(20)) {
|
||||
inventory.drainCan(tankManager);
|
||||
|
||||
@@ -14,6 +14,7 @@ import javax.annotation.Nonnull;
|
||||
import java.io.IOException;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
|
||||
@@ -40,8 +41,8 @@ public class FarmHydrationManager implements IFarmLedgerDelegate, INbtWritable,
|
||||
this.climatised = climatised;
|
||||
}
|
||||
|
||||
public void updateServer(World world, BiomeGenBase biome) {
|
||||
if (world.isRaining() && BiomeHelper.canRainOrSnow(biome)) {
|
||||
public void updateServer(World world, BlockPos coordinates) {
|
||||
if (world.isRainingAt(coordinates)) {
|
||||
if (hydrationDelay > 0) {
|
||||
hydrationDelay--;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user