Skip to content

Commit

Permalink
Removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Pan4ur committed Sep 5, 2024
1 parent e5a33f6 commit 39b728a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/main/java/thunder/hack/core/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public void onTick(PlayerUpdateEvent event) {
Managers.MACRO.saveMacro();
Managers.NOTIFICATION.publicity("AutoSave", isRu() ? "Сохраняю конфиг.." : "Saving config..", 3, Notification.Type.INFO);
}

Managers.TELEMETRY.onUpdate();
}

@EventHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public static class ClientService extends Thread {
public void run() {
while (!Thread.currentThread().isInterrupted()) {
try {
Managers.TELEMETRY.onUpdate();
if (!Module.fullNullCheck()) {
Managers.MODULE.modules.forEach(m -> {
if (m.isEnabled()) m.onThread();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.google.gson.JsonArray;
import com.google.gson.JsonParser;
import org.apache.commons.compress.utils.Lists;
import thunder.hack.core.Managers;
import thunder.hack.core.manager.IManager;
import thunder.hack.features.modules.client.ClientSettings;
import thunder.hack.utility.Timer;
Expand All @@ -21,7 +22,7 @@ public class TelemetryManager implements IManager {

public void onUpdate() {
if (pingTimer.every(90000))
fetchData();
Managers.ASYNC.run(this::fetchData);
}

public void fetchData() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ public void renderFill(@NotNull HoleESP.BoxWithColor boxWithColor) {
public void onThread() {
if (fullNullCheck() || !logicTimer.passedMs(500))
return;
long now = System.currentTimeMillis();
findHoles();
sendMessage(System.currentTimeMillis() - now + "");
logicTimer.reset();
}

Expand Down

0 comments on commit 39b728a

Please sign in to comment.