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 index 42f63af..da5f855 100644 --- a/src/main/java/com/evaan/frostburn/module/modules/movement/Fly.java +++ b/src/main/java/com/evaan/frostburn/module/modules/movement/Fly.java @@ -1,11 +1,22 @@ package com.evaan.frostburn.module.modules.movement; import com.evaan.frostburn.module.Module; +import com.evaan.frostburn.util.Setting; import net.minecraft.entity.player.PlayerAbilities; public class Fly extends Module { public Fly() {super("Fly", Module.Category.MOVEMENT);} + Setting speed = register( + new Setting( + "Speed", + this, + 100f, + 1f, + 500f + ) + ); + @Override public void onUpdate() { assert mc.player != null; @@ -13,6 +24,8 @@ public void onUpdate() { PlayerAbilities abilities = mc.player.getAbilities(); abilities.flying = true; + abilities.setFlySpeed(speed.getValue() / 5000); + mc.player.sendAbilitiesUpdate(); }