Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Spigey committed May 9, 2024
1 parent 327dfa9 commit c5b3138
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package spigey.asteroide.modules;

import meteordevelopment.meteorclient.events.packets.PacketEvent;
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.mixin.PlayerMoveC2SPacketAccessor;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.orbit.EventHandler;
Expand All @@ -11,8 +12,9 @@ public CreativeFlightModule() {
super(AsteroideAddon.CATEGORY, "creative-flight", "Allows you to fly like you're in creative mode");
}

@Override
public void onActivate() {
@EventHandler
public void onTick(TickEvent.Post event) {
if(!isActive()) return;
assert mc.player != null;
mc.player.getAbilities().allowFlying = true;
}
Expand Down

0 comments on commit c5b3138

Please sign in to comment.