mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
Fix #1186 Begin farm cleanup and testing
This commit is contained in:
1 parent
1707573f7d
commit
afbde2d735
64 files changed
+1055
-1424
No files matched your search
@@ -10,7 +10,6 @@
|
||||
******************************************************************************/
|
||||
package forestry.farming;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
@@ -57,8 +56,7 @@ public class FarmTarget {
|
||||
BlockPos.MutableBlockPos position = new BlockPos.MutableBlockPos(platformPosition);
|
||||
for (extent = 0; extent < limit; extent++) {
|
||||
IBlockState blockState = world.getBlockState(position);
|
||||
Block platform = blockState.getBlock();
|
||||
if (!FarmHelper.bricks.contains(platform)) {
|
||||
if (!FarmHelper.bricks.contains(blockState.getBlock())) {
|
||||
break;
|
||||
}
|
||||
position.offsetMutable(getDirection().getFacing());
|
||||
|
||||
Reference in new issue
Block a user