mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-24 03:25:24 +01:00
Potential fix for broken multiworld states.
This commit is contained in:
parent
636819c801
commit
714e75eb95
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user