Merge pull request #190 from skeight/master

Fix for bug #728 (Multiverse + Worldguard region with exit flag set)
This commit is contained in:
MonsieurApple 2012-02-10 11:40:34 -08:00
commit 47c84beb43

View File

@ -303,6 +303,12 @@ public void onPlayerMove(PlayerMoveEvent event) {
return;
}
//Flush states in multiworld scenario
if (state.lastWorld != null && !state.lastWorld.equals(world)) {
plugin.getFlagStateManager().forget(player);
return;
}
// Have to set this state
if (state.lastExitAllowed == null) {
state.lastExitAllowed = mgr.getApplicableRegions(toVector(event.getFrom()))