mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-08 03:49:32 +01:00
Reset handler caches when a move type is non-cancellable.
This commit is contained in:
parent
e1843624bb
commit
afcf93b7b1
@ -223,6 +223,12 @@ public Location testMoveTo(Player player, Location to, MoveType moveType, boolea
|
|||||||
lastRegionSet = toSet.getRegions();
|
lastRegionSet = toSet.getRegions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Some handlers (see: exit flag) store 'last position data' that
|
||||||
|
// becomes invalid if we're going to let the player move anyway
|
||||||
|
if (moveType.isCancellable()) {
|
||||||
|
resetState(player);
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user