Skip to content

Commit

Permalink
Added RingRoad digging back for future changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCarlos26 committed Apr 3, 2024
1 parent 9b1dc8e commit 0105517
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class AxisBorer extends BorerModule {
public AxisBorer() {
super("AxisBorer", "Bore holes in the X and Z axis.", 4, 4, 0, 0);
super("AxisBorer", "Automatically digs any axis highway and ring road.", 4, 4, 0, 0);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class HighwayTools extends Module {

private final Setting<Double> radius = sgGeneral.add(new DoubleSetting.Builder()
.name("axis-radius")
.description("The radius from the axis to toggle HighwayTools.")
.description("The radius from the axis to toggle HighwayTools at.")
.defaultValue(3)
.min(0)
.sliderRange(0, 15)
Expand Down Expand Up @@ -86,7 +86,7 @@ public void onActivate() {
modules.get(HighwayBuilderPlus.class).toggle();
commonClasses.forEach(moduleClass -> modules.get(moduleClass).toggle());
}
case AxisDigging -> {
case AxisDigging, RingRoadDigging -> {
modules.get(AxisBorer.class).toggle();
commonClasses.forEach(moduleClass -> modules.get(moduleClass).toggle());
}
Expand Down Expand Up @@ -124,7 +124,7 @@ public void onDeactivate() {
.filter(moduleClass -> modules.get(moduleClass).isActive())
.forEach(moduleClass -> modules.get(moduleClass).toggle());
}
case AxisDigging -> {
case AxisDigging, RingRoadDigging -> {
if (modules.get(AxisBorer.class).isActive()) modules.get(AxisBorer.class).toggle();
commonClasses.stream()
.filter(moduleClass -> modules.get(moduleClass).isActive())
Expand Down Expand Up @@ -193,6 +193,7 @@ public enum Mode {
NegNegDigging,
NegPosDigging,
PosNegDigging,
PosPosDigging
PosPosDigging,
RingRoadDigging
}
}

0 comments on commit 0105517

Please sign in to comment.