diff --git a/init.lua b/init.lua index 181f6b4..2de071f 100644 --- a/init.lua +++ b/init.lua @@ -99,7 +99,7 @@ function creative_regions:update_player(player, initialize) -- did the regions change? update -- ToDo: Update on privileges changed local player_last_active_region_str = pmeta:get_string("creative_regions.active_regions") or "" - if player_active_region_str ~= player_last_active_region_str or initialize then + if player_active_region_str ~= player_last_active_region_str or initialize == 1 then creative_regions:player_enter_region(player, new_privs_table, initialize) pmeta:set_string("creative_regions.active_regions", player_active_region_str) end diff --git a/player.lua b/player.lua index 41a3b51..0b70719 100644 --- a/player.lua +++ b/player.lua @@ -97,7 +97,7 @@ function creative_regions:player_enter_region(player, new_privs_table, initializ end end - if new_mode ~= old_mode or initialize then + if new_mode ~= old_mode or initialize == 1 then if old_mode == "arena" then -- leaving arena (alive)