try
This commit is contained in:
parent
6ea08ab4dc
commit
9ebd9154d9
1 changed files with 11 additions and 7 deletions
|
@ -143,13 +143,17 @@ public class SelfCare extends Listener {
|
||||||
public void packetReceived(PlayerPositionLookS2CPacket packet) {
|
public void packetReceived(PlayerPositionLookS2CPacket packet) {
|
||||||
if (timer == null) return;
|
if (timer == null) return;
|
||||||
|
|
||||||
positionPacketsPerSecond++;
|
try {
|
||||||
|
positionPacketsPerSecond++;
|
||||||
|
|
||||||
timer.schedule(new TimerTask() {
|
timer.schedule(new TimerTask() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
positionPacketsPerSecond--;
|
positionPacketsPerSecond--;
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue