3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +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
public boolean checkServerboundPacket() {
if (pendingDisconnect || !packetLimiterEnabled) {
if (pendingDisconnect) {
return false;
}
// Increment received + Check PPS
return !packetTracker.incrementReceived() || !packetTracker.exceedsMaxPPS();
return !packetLimiterEnabled || !packetTracker.incrementReceived() || !packetTracker.exceedsMaxPPS();
}
@Override