Anticheat stuff

This commit is contained in:
ImHacking 2022-06-27 22:24:55 -04:00
parent 2a8d293b2d
commit faf402abe9
1 changed files with 5 additions and 10 deletions

View File

@ -890,22 +890,15 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs
this.h[this.ticks % 100] = System.nanoTime() - i;
this.methodProfiler.b();
/* this.methodProfiler.a("snooper");
if (getSnooperEnabled() && !this.n.d() && this.ticks > 100) { // Spigot
this.n.a();
}
if (getSnooperEnabled() && this.ticks % 6000 == 0) { // Spigot
this.n.b();
}
this.methodProfiler.b(); */
this.methodProfiler.b();
org.spigotmc.WatchdogThread.tick(); // Spigot
co.aikar.timings.TimingsManager.FULL_SERVER_TICK.stopTiming(); // Spigot
}
public static List<Runnable> PRE_ENTITY_TRACKER_RUNNABLE_LIST = new ArrayList<>();
public static List<Runnable> POST_ENTITY_TRACKER_RUNNABLE_LIST = new ArrayList<>();
public void B() {
SpigotTimings.minecraftSchedulerTimer.startTiming(); // Spigot
this.methodProfiler.a("jobs");
@ -1006,7 +999,9 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs
}
}
try {
PRE_ENTITY_TRACKER_RUNNABLE_LIST.forEach(Runnable::run);
worldserver.getTracker().updatePlayers();
POST_ENTITY_TRACKER_RUNNABLE_LIST.forEach(Runnable::run);
} finally {
for (NetworkManager networkManager : disabledFlushes)
networkManager.enableAutomaticFlush();