mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 11:10:05 +01:00
Invalidate currently processed move, if a teleport happened.
Should only be possible to happen, if an actions entry doesn't use 'ncp delay ...' for teleporting, or if a hook teleports the player (both discouraged).
This commit is contained in:
parent
16a1e08f57
commit
3cfa6cfb06
@ -750,7 +750,14 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
processBounce(player, pFrom.getY(), pTo.getY(), data, cc);
|
||||
}
|
||||
// Finished move processing.
|
||||
if (processingEvents.containsKey(playerName)) {
|
||||
// Normal processing.
|
||||
// TODO: More simple: UUID keys or a data flag instead?
|
||||
data.finishThisMove();
|
||||
} else {
|
||||
// Teleport during violation processing, just invalidate thisMove.
|
||||
data.thisMove.invalidate();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user