Reduce overload check interval

A too low interval seems likely to crash the server.
This commit is contained in:
IzzelAliz 2020-10-31 10:56:56 +08:00
parent 401a290c68
commit 285f9f7f73

View File

@ -185,7 +185,7 @@ public abstract class MinecraftServerMixin extends RecursiveEventLoop<TickDelaye
while (this.serverRunning) {
long i = (curTime = Util.milliTime()) - this.serverTime;
if (i > 5000L && this.serverTime - this.timeOfLastWarning >= 30000L) {
if (i > 2000L && this.serverTime - this.timeOfLastWarning >= 15000L) {
long j = i / 50L;
if (server.getWarnOnOverload()) {