diff --git a/src/main/java/com/evaan/frostburn/module/ModuleManager.java b/src/main/java/com/evaan/frostburn/module/ModuleManager.java index bd3d9c9..8151e45 100644 --- a/src/main/java/com/evaan/frostburn/module/ModuleManager.java +++ b/src/main/java/com/evaan/frostburn/module/ModuleManager.java @@ -2,10 +2,7 @@ import com.evaan.frostburn.module.modules.combat.*; import com.evaan.frostburn.module.modules.misc.*; -import com.evaan.frostburn.module.modules.movement.Jesus; -import com.evaan.frostburn.module.modules.movement.NoFall; -import com.evaan.frostburn.module.modules.movement.SafeWalk; -import com.evaan.frostburn.module.modules.movement.Sprint; +import com.evaan.frostburn.module.modules.movement.*; import com.evaan.frostburn.module.modules.render.*; import java.util.ArrayList; @@ -50,6 +47,7 @@ public static void init() { modules.add(new CleanChat()); modules.add(new MiddleClick()); modules.add(new ImGuiMod()); + modules.add(new Fly()); modules.sort(Comparator.comparing(object -> object.name)); //sort the modules alphabetically } diff --git a/src/main/java/com/evaan/frostburn/module/modules/movement/Fly.java b/src/main/java/com/evaan/frostburn/module/modules/movement/Fly.java new file mode 100644 index 0000000..42f63af --- /dev/null +++ b/src/main/java/com/evaan/frostburn/module/modules/movement/Fly.java @@ -0,0 +1,29 @@ +package com.evaan.frostburn.module.modules.movement; + +import com.evaan.frostburn.module.Module; +import net.minecraft.entity.player.PlayerAbilities; + +public class Fly extends Module { + public Fly() {super("Fly", Module.Category.MOVEMENT);} + + @Override + public void onUpdate() { + assert mc.player != null; + + PlayerAbilities abilities = mc.player.getAbilities(); + abilities.flying = true; + + mc.player.sendAbilitiesUpdate(); + } + + @Override + public void onDisable() { + assert mc.player != null; + + PlayerAbilities abilities = mc.player.getAbilities(); + abilities.flying = false; + + mc.player.sendAbilitiesUpdate(); + + } +}