3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-08 17:20:24 +01:00

Fix disabled packet limiter check

Dieser Commit ist enthalten in:
Nassim Jahnke 2021-09-02 17:33:09 +02:00
Ursprung a0b19872f8
Commit f4f7215a6a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -254,11 +254,11 @@ public class UserConnectionImpl implements UserConnection {
@Override @Override
public boolean checkServerboundPacket() { public boolean checkServerboundPacket() {
if (pendingDisconnect || !packetLimiterEnabled) { if (pendingDisconnect) {
return false; return false;
} }
// Increment received + Check PPS // Increment received + Check PPS
return !packetTracker.incrementReceived() || !packetTracker.exceedsMaxPPS(); return !packetLimiterEnabled || !packetTracker.incrementReceived() || !packetTracker.exceedsMaxPPS();
} }
@Override @Override