mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-28 02:11:22 +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());
|
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) {
|
if (!cc.flyingFrequencyActive) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
counters.add(idHandled, 1);
|
counters.add(idHandled, 1);
|
||||||
|
|
||||||
final NetData data = dataFactory.getData(player);
|
|
||||||
data.lastKeepAliveTime = time; // Update without much of a contract.
|
|
||||||
|
|
||||||
final boolean primaryThread = !event.isAsync();
|
final boolean primaryThread = !event.isAsync();
|
||||||
if (!primaryThread) {
|
if (!primaryThread) {
|
||||||
// Count all asynchronous events.
|
// Count all asynchronous events.
|
||||||
|
Loading…
Reference in New Issue
Block a user