Anticheat stuff
This commit is contained in:
parent
2a8d293b2d
commit
faf402abe9
|
@ -890,22 +890,15 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs
|
||||||
this.h[this.ticks % 100] = System.nanoTime() - i;
|
this.h[this.ticks % 100] = System.nanoTime() - i;
|
||||||
this.methodProfiler.b();
|
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();
|
this.methodProfiler.b();
|
||||||
org.spigotmc.WatchdogThread.tick(); // Spigot
|
org.spigotmc.WatchdogThread.tick(); // Spigot
|
||||||
co.aikar.timings.TimingsManager.FULL_SERVER_TICK.stopTiming(); // 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() {
|
public void B() {
|
||||||
SpigotTimings.minecraftSchedulerTimer.startTiming(); // Spigot
|
SpigotTimings.minecraftSchedulerTimer.startTiming(); // Spigot
|
||||||
this.methodProfiler.a("jobs");
|
this.methodProfiler.a("jobs");
|
||||||
|
@ -1006,7 +999,9 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
PRE_ENTITY_TRACKER_RUNNABLE_LIST.forEach(Runnable::run);
|
||||||
worldserver.getTracker().updatePlayers();
|
worldserver.getTracker().updatePlayers();
|
||||||
|
POST_ENTITY_TRACKER_RUNNABLE_LIST.forEach(Runnable::run);
|
||||||
} finally {
|
} finally {
|
||||||
for (NetworkManager networkManager : disabledFlushes)
|
for (NetworkManager networkManager : disabledFlushes)
|
||||||
networkManager.enableAutomaticFlush();
|
networkManager.enableAutomaticFlush();
|
||||||
|
|
Loading…
Reference in New Issue