From 95587b3c77650449b6131102542aed083f4ab0b9 Mon Sep 17 00:00:00 2001 From: noil Date: Sun, 13 Dec 2020 17:25:49 -0500 Subject: [PATCH] Strafe elyra check --- .../seppuku/impl/module/movement/StrafeModule.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/movement/StrafeModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/movement/StrafeModule.java index 5040f03..c84df64 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/movement/StrafeModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/movement/StrafeModule.java @@ -10,10 +10,12 @@ import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; /** * created by noil on 9/22/2019 at 11:01 AM + * updated on 12/12/2020 - sn01 */ public final class StrafeModule extends Module { public Value ground = new Value("Ground", new String[]{"Ground", "OnGround"}, "When enabled, enables strafe movement while on ground.", false); + public Value elytraCheck = new Value("ElytraCheck", new String[]{"Flycheck", "Elytra"}, "Lets you use ElytraFly and Strafe at the same time without bugging out.", true); public StrafeModule() { super("Strafe", new String[]{"Strafe"}, "Unlocks full movement control while airborne, and optionally on ground too.", "NONE", -1, ModuleType.MOVEMENT); @@ -29,6 +31,9 @@ public final class StrafeModule extends Module { if (mc.player.isSneaking() || mc.player.isOnLadder() || mc.player.isInWeb || mc.player.isInLava() || mc.player.isInWater() || mc.player.capabilities.isFlying) return; + if (this.elytraCheck.getValue() && mc.player.isElytraFlying()) + return; + // check to bypass option on ground or not if (!this.ground.getValue()) { if (mc.player.onGround)