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:
Ursprung
a0b19872f8
Commit
f4f7215a6a
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren