Fix #1211 Farm and Rain Tank are not detecting rain when biome changes

This commit is contained in:
mezz committed 2016-05-22 23:55:05 -07:00
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 {