Skip to content

Commit

Permalink
this
Browse files Browse the repository at this point in the history
  • Loading branch information
martimavocado committed Sep 30, 2024
1 parent e66b753 commit 21dd6d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.core.config.Position;
import at.hannibal2.skyhanni.features.garden.CropType;
import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.Accordion;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDraggableList;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;

import java.util.ArrayList;
import java.util.List;

public class FarmingLaneConfig {

@Expose
Expand Down Expand Up @@ -37,4 +42,11 @@ public class FarmingLaneConfig {
@FeatureToggle
public boolean cornerWaypoints = false;

@Expose
@ConfigOption(
name = "Ignored Crops",
desc = "Add the crops you wish to not setup a lane for."
)
@ConfigEditorDraggableList()
public List<CropType> ignoredCrops = new ArrayList<>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ object FarmingLaneAPI {

private fun warnNoLane(crop: CropType?) {
if (crop == null || currentLane != null) return
if (crop in config.ignoredCrops) return
if (!GardenAPI.hasFarmingToolInHand()) return
if (FarmingLaneCreator.detection) return
if (!config.distanceDisplay && !config.laneSwitchNotification.enabled) return
Expand Down

0 comments on commit 21dd6d1

Please sign in to comment.