mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-29 19:01: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);
|
final Location ref = player.getVehicle().getLocation(useLoc);
|
||||||
mData.resetPositions(ref);
|
mData.resetPositions(ref);
|
||||||
useLoc.setWorld(null);
|
useLoc.setWorld(null);
|
||||||
mData.resetTrace(player, ref, time);
|
mData.updateTrace(player, ref, time);
|
||||||
}
|
}
|
||||||
else if (!fromWorldName.equals(toWorldName)) {
|
else if (!fromWorldName.equals(toWorldName)) {
|
||||||
mData.resetPositions(to);
|
mData.resetPositions(to);
|
||||||
mData.resetTrace(player, to, time);
|
mData.resetTrace(player, to, time);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// Slightly redundant at present.
|
mData.setTo(to); // Called on lowest too.
|
||||||
mData.setTo(to);
|
mData.updateTrace(player, to, time);
|
||||||
mData.resetTrace(player, to, time);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user