mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-28 10:21:22 +01:00
Do update the moving trace.
This commit is contained in:
parent
ce406f3280
commit
3f0644930a
@ -796,16 +796,15 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
final Location ref = player.getVehicle().getLocation(useLoc);
|
||||
mData.resetPositions(ref);
|
||||
useLoc.setWorld(null);
|
||||
mData.resetTrace(player, ref, time);
|
||||
mData.updateTrace(player, ref, time);
|
||||
}
|
||||
else if (!fromWorldName.equals(toWorldName)) {
|
||||
mData.resetPositions(to);
|
||||
mData.resetTrace(player, to, time);
|
||||
}
|
||||
else{
|
||||
// Slightly redundant at present.
|
||||
mData.setTo(to);
|
||||
mData.resetTrace(player, to, time);
|
||||
mData.setTo(to); // Called on lowest too.
|
||||
mData.updateTrace(player, to, time);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user