Count tps from 20 instead of 0.

This commit is contained in:
IzzelAliz 2020-08-02 20:04:43 +08:00
parent 5d1a28c33b
commit ce247a2fa5

View File

@ -171,7 +171,7 @@ public abstract class MinecraftServerMixin extends RecursiveEventLoop<TickDelaye
this.statusResponse.setVersion(new ServerStatusResponse.Version(SharedConstants.getVersion().getName(), SharedConstants.getVersion().getProtocolVersion())); this.statusResponse.setVersion(new ServerStatusResponse.Version(SharedConstants.getVersion().getName(), SharedConstants.getVersion().getProtocolVersion()));
this.applyServerIconToResponse(this.statusResponse); this.applyServerIconToResponse(this.statusResponse);
Arrays.fill(recentTps, 0); Arrays.fill(recentTps, 20);
long curTime, tickSection = Util.milliTime(), tickCount = 1; long curTime, tickSection = Util.milliTime(), tickCount = 1;
while (this.serverRunning) { while (this.serverRunning) {