|
@ -99,7 +99,7 @@ function creative_regions:update_player(player, initialize) |
|
|
-- did the regions change? update |
|
|
-- did the regions change? update |
|
|
-- ToDo: Update on privileges changed |
|
|
-- ToDo: Update on privileges changed |
|
|
local player_last_active_region_str = pmeta:get_string("creative_regions.active_regions") or "" |
|
|
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) |
|
|
creative_regions:player_enter_region(player, new_privs_table, initialize) |
|
|
pmeta:set_string("creative_regions.active_regions", player_active_region_str) |
|
|
pmeta:set_string("creative_regions.active_regions", player_active_region_str) |
|
|
end |
|
|
end |
|
|