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

Commit

Permalink
💗 further fix backtrack lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Tryflle committed Dec 21, 2023
1 parent 3011b36 commit 5096d0d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void packetHandler(RenderHandEvent e) {
PacketUtils.handle(timedPacket.packet(), false);
return true;
}
return false;
} catch (Exception ignored) {}
return false;
});
Expand All @@ -59,6 +60,7 @@ public void onEnable() {

@Override
public void onDisable() {
EventBus.unsubscribe(this);
if (PlayerUtils.isPlayerInGame()) {
try {
incomingPackets.removeIf(timedPacket -> {
Expand All @@ -68,6 +70,5 @@ public void onDisable() {
} catch (Exception ignored) {}
}
incomingPackets.clear();
EventBus.unsubscribe(this);
}
}

0 comments on commit 5096d0d

Please sign in to comment.