mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-14 11:31:26 +01:00
Always update last received time.
This commit is contained in:
parent
7286df5875
commit
0f1a5345f8
@ -76,15 +76,15 @@ public class FlyingFrequency extends BaseAdapter {
|
||||
}
|
||||
|
||||
final NetConfig cc = configFactory.getConfig(player.getWorld());
|
||||
// Always update last received time.
|
||||
final NetData data = dataFactory.getData(player);
|
||||
data.lastKeepAliveTime = time; // Update without much of a contract.
|
||||
if (!cc.flyingFrequencyActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
counters.add(idHandled, 1);
|
||||
|
||||
final NetData data = dataFactory.getData(player);
|
||||
data.lastKeepAliveTime = time; // Update without much of a contract.
|
||||
|
||||
final boolean primaryThread = !event.isAsync();
|
||||
if (!primaryThread) {
|
||||
// Count all asynchronous events.
|
||||
|
Loading…
Reference in New Issue
Block a user