mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 23:33:00 +00:00
Fix #1211 Farm and Rain Tank are not detecting rain when biome changes
This commit is contained in:
1 parent
55d35c4cbe
commit
d1969e1868
2 files changed
+4
-21
No files matched your search
@@ -16,6 +16,7 @@ import java.io.IOException;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import forestry.api.core.INbtReadable;
|
||||
import forestry.api.core.INbtWritable;
|
||||
import forestry.core.network.DataInputStreamForestry;
|
||||
@@ -39,7 +40,7 @@ public class FarmHydrationManager implements IFarmLedgerDelegate, INbtWritable,
|
||||
}
|
||||
|
||||
public void updateServer(World world, BlockPos coordinates) {
|
||||
if (world.isRainingAt(coordinates)) {
|
||||
if (world.isRainingAt(coordinates.up())) {
|
||||
if (hydrationDelay > 0) {
|
||||
hydrationDelay--;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user