mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 14:53:05 +00:00
Fix #1993, Fix #1972 Managed Succulent Farm doesn't work and Farm multiblock causing chunks to be loaded
This commit is contained in:
1 parent
424bc8910d
commit
355ba9a7ed
14 files changed
+54
-12
No files matched your search
@@ -60,6 +60,10 @@ public class FarmLogicCrops extends FarmLogicWatered {
|
||||
protected boolean maintainCrops(World world, IFarmHousing farmHousing, BlockPos pos, FarmDirection direction, int extent) {
|
||||
for (int i = 0; i < extent; i++) {
|
||||
BlockPos position = translateWithOffset(pos, direction, i);
|
||||
if(!world.isBlockLoaded(position)){
|
||||
break;
|
||||
}
|
||||
|
||||
IBlockState state = world.getBlockState(position);
|
||||
if (!world.isAirBlock(position) && !BlockUtil.isReplaceableBlock(state, world, position)) {
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user