Skip to content

Commit 39c04ec

Browse files
committed
Fix left and right issue
1 parent 787fe98 commit 39c04ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/com/lambda/module/modules/player/HighwayTools.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ object HighwayTools : Module(
6363
private val floorMaterial by setting("Floor Material", Blocks.NETHERRACK, "Material to build the floor with") { floor == Material.Block }.group(Group.Structure)
6464
private val rightWall by setting("Right Wall", Material.None, "Build the right wall").group(Group.Structure)
6565
private val leftWall by setting("Left Wall", Material.None, "Build the left wall").group(Group.Structure)
66-
private val wallMaterial by setting("Wall Material", Blocks.NETHERRACK, "Material to build the walls with") { rightWall == Material.Block }.group(Group.Structure)
66+
private val wallMaterial by setting("Wall Material", Blocks.NETHERRACK, "Material to build the walls with") { rightWall == Material.Block || leftWall == Material.Block }.group(Group.Structure)
6767
private val ceiling by setting("Ceiling", Material.None, "Material for the ceiling").group(Group.Structure)
6868
private val ceilingMaterial by setting("Ceiling Material", Blocks.OBSIDIAN, "Material to build the ceiling with") { ceiling == Material.Block }.group(Group.Structure)
6969
private val distance by setting("Distance", -1, -1..1000000, 1, "Distance to build the highway/tunnel (negative for infinite)").group(Group.Structure)
@@ -231,7 +231,7 @@ object HighwayTools : Module(
231231
orthogonal,
232232
1,
233233
height - wallElevation,
234-
-center - 1,
234+
-center + width,
235235
wallElevation,
236236
).associateWith { target(rightWall, wallMaterial) }
237237
}
@@ -241,9 +241,9 @@ object HighwayTools : Module(
241241
orthogonal,
242242
1,
243243
height - wallElevation,
244-
-center + width,
244+
-center - 1,
245245
wallElevation,
246-
).associateWith { target(rightWall, wallMaterial) }
246+
).associateWith { target(leftWall, wallMaterial) }
247247
}
248248

249249
if (floor != Material.None) {

0 commit comments

Comments
 (0)