From 15d2346deacb357252ad006319a393180a5c815b Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 5 Jan 2013 12:28:04 +0100 Subject: [PATCH] MovingData.onSetBack: also reset more-packets/vehicle set-backs. --- .../fr/neatmonster/nocheatplus/checks/moving/MovingData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java index dab97159..07d64844 100644 --- a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java +++ b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java @@ -167,7 +167,8 @@ public class MovingData extends ACheckData { public void onSetBack(final Location setBack) { // Reset positions resetPositions(teleported); - this.setBack = teleported; + // NOTE: Do mind that the reference is used diredctly for set-backs, should stay consistent, though. + this.setBack = this.morePacketsSetback = this.morePacketsVehicleSetback = teleported; clearAccounting(); // Might be more safe to do this. // Keep no-fall data. // Fly data: problem is we don't remember the settings for the set back location.