Skip to content

Commit

Permalink
feat(legacy): scaffold eagle onlyonground
Browse files Browse the repository at this point in the history
Closes: #4789
  • Loading branch information
EclipsesDev committed Dec 3, 2024
1 parent a1a9e54 commit 05279d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ object Scaffold : Module("Scaffold", Category.WORLD, Keyboard.KEY_I, hideModule
0f,
0f..0.5f
) { eagleValue.isSupported() && eagle != "Off" }
private val onlyOnGround by boolean("OnlyOnGround", false)
{ eagleValue.isSupported() && eagle != "Off" }

// Rotation Options
private val modeList = choices("Rotations", arrayOf("Off", "Normal", "Stabilized", "ReverseYaw", "GodBridge"), "Normal")
Expand Down Expand Up @@ -328,7 +330,7 @@ object Scaffold : Module("Scaffold", Category.WORLD, Keyboard.KEY_I, hideModule
private var placedBlocksWithoutEagle = 0
var eagleSneaking = false
private val isEagleEnabled
get() = eagle != "Off" && !shouldGoDown && scaffoldMode != "GodBridge"
get() = eagle != "Off" && !shouldGoDown && scaffoldMode != "GodBridge" && (!onlyOnGround || mc.thePlayer?.onGround == true)

// Downwards
val shouldGoDown
Expand Down

0 comments on commit 05279d2

Please sign in to comment.