mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-08 03:49:32 +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);
|
PlayerFlagState state = plugin.getFlagStateManager().getState(player);
|
||||||
|
|
||||||
//Flush states in multiworld scenario
|
//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);
|
plugin.getFlagStateManager().forget(player);
|
||||||
state = plugin.getFlagStateManager().getState(player);
|
state = plugin.getFlagStateManager().getState(player);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user