Fix wrong precondition for handling cancelled moves.

Mostly affected moves cancelled by other plugins.
This commit is contained in:
asofold 2017-04-10 18:10:10 +02:00
parent 2de5f2fd3a
commit b11ae340b5

View File

@ -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;