Skip to content

Commit 67887c0

Browse files
committed
fix enum display name and separate up and down angles in grim control
1 parent 8d85050 commit 67887c0

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/main/kotlin/com/lambda/module/modules/movement/elytrafly/ElytraFly.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ object ElytraFly : Module(
6767
}
6868

6969
enum class RocketBoostMode(override val displayName: String): NamedEnum {
70-
Standard("$this"),
71-
Grim("$this")
70+
Standard("Standard"),
71+
Grim("Grim")
7272
}
7373

7474
private val boostSpeed by setting("Boost", 0.0, 0.0..0.5, 0.005, description = "Speed to add when flying")

src/main/kotlin/com/lambda/module/modules/movement/elytrafly/modes/GrimControlElytraFly.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class GrimControlElytraFly(
4747
override val c: Config
4848
) : ElytraFlyMode(FlyMode.GrimControl) {
4949
private val inventory by c.setting("Inventory", true, "Allow using fireworks from the players inventory")
50-
private val upDownAngle by c.setting("Up/Down Angle", 20f, 0f..90f, 0.1f)
50+
private val upAngle by c.setting("Up Angle", 45f, 0f..90f, 0.1f)
51+
private val downAngle by c.setting("Down Angle", 20f, 0f..90f, 0.1f)
5152
val flipFlopMode by c.setting("Flip Flop Mode", FlipFlopMode.None)
5253
private val packetGap by c.setting("Packet Gap", 20, 0..100, 1, "The gap between allowing player movement packets to pass") { flipFlopMode != FlipFlopMode.None }
5354

@@ -94,12 +95,12 @@ class GrimControlElytraFly(
9495
}
9596
if (mc.options.jumpKey.isPressed) {
9697
vec =
97-
if (specificYaw) Vec3d.fromPolar(-upDownAngle, vec.yawAndPitch.y)
98+
if (specificYaw) Vec3d.fromPolar(-upAngle, vec.yawAndPitch.y)
9899
else Vec3d.fromPolar(-90f, yaw)
99100
}
100101
if (mc.options.sneakKey.isPressed) {
101102
vec =
102-
if (specificYaw) Vec3d.fromPolar(upDownAngle, vec.yawAndPitch.y)
103+
if (specificYaw) Vec3d.fromPolar(downAngle, vec.yawAndPitch.y)
103104
else Vec3d.fromPolar(90f, yaw)
104105
}
105106

0 commit comments

Comments
 (0)