mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 04:55:37 +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();
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user