Hendrik Langer 3 years ago
parent
commit
a9d6965d08
  1. 2
      init.lua
  2. 2
      player.lua

2
init.lua

@ -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

2
player.lua

@ -97,7 +97,7 @@ function creative_regions:player_enter_region(player, new_privs_table, initializ
end end
end end
if new_mode ~= old_mode or initialize then if new_mode ~= old_mode or initialize == 1 then
if old_mode == "arena" then if old_mode == "arena" then
-- leaving arena (alive) -- leaving arena (alive)

Loading…
Cancel
Save