Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
💜 minor KA bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tryflle committed Nov 25, 2023
1 parent f024d2c commit 68606df
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import net.weavemc.loader.api.event.*;
import org.lwjgl.input.Mouse;

import java.util.Objects;
import java.util.Optional;

@SuppressWarnings("unused")
Expand All @@ -43,6 +42,10 @@ public Killaura() {
this.registerSetting(targetESP = new TickSetting("ESP", false));
}

@Override
public void onDisable() {
target = Optional.empty();
}
@SubscribeEvent
public void setTarget(TickEvent.Pre e) {
if (PlayerUtils.isPlayerInGame()) {
Expand Down

0 comments on commit 68606df

Please sign in to comment.