mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-07-01 09:04:56 +02:00
Fix disabled packet limiter check
This commit is contained in:
parent
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user