Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 17:10:13 +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
|
@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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren