Potential fix for broken multiworld states.

This commit is contained in:
wizjany 2013-06-23 16:32:30 -04:00
parent 636819c801
commit 714e75eb95

View File

@ -119,7 +119,7 @@ public static boolean checkMove(WorldGuardPlugin plugin, Player player, World wo
PlayerFlagState state = plugin.getFlagStateManager().getState(player);
//Flush states in multiworld scenario
if (state.lastWorld != null && !state.lastWorld.equals(world)) {
if (state.lastWorld != null && !state.lastWorld.equals(to.getWorld())) {
plugin.getFlagStateManager().forget(player);
state = plugin.getFlagStateManager().getState(player);
}