mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-06-26 06:14:42 +02:00
Fix wrong precondition for handling cancelled moves.
Mostly affected moves cancelled by other plugins.
This commit is contained in:
parent
2de5f2fd3a
commit
b11ae340b5
|
@ -1439,7 +1439,7 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||
private void onCancelledMove(final Player player, final Location from, final int tick, final long now,
|
||||
final MovingData mData, final MovingConfig mCc, final CombinedData data) {
|
||||
// Detect our own set back, choice of reference location.
|
||||
if (mData.hasSetBack()) {
|
||||
if (mData.hasTeleported()) {
|
||||
final Location ref = mData.getTeleported();
|
||||
// Initiate further action depending on settings.
|
||||
final PlayerSetBackMethod method = mCc.playerSetBackMethod;
|
||||
|
|
Loading…
Reference in New Issue
Block a user