Browse Source

remove debug output

main
Hendrik Langer 5 years ago
parent
commit
9703d894f9
  1. 3
      init.lua

3
init.lua

@ -148,7 +148,7 @@ function toggle_areas:update_player(player)
local smallest_area = {} local smallest_area = {}
if minetest.check_player_privs(name, { protection_bypass=true }) then if minetest.check_player_privs(name, { protection_bypass=true }) then
minetest.log("warning", "[toggle_areas] Player has protection_bypass priv") minetest.chat_send_player(name, "Changed area. You have protection_bypass priv")
return return
end end
@ -203,7 +203,6 @@ function toggle_areas:update_player(player)
end end
if player_active_areas ~= player_last_active_areas then if player_active_areas ~= player_last_active_areas then
minetest.log("warning", "[toggle_areas] player entering new area "..player_last_active_areas.."->"..player_active_areas)
toggle_areas:player_enter_area(player, privstring) toggle_areas:player_enter_area(player, privstring)
pmeta:set_string("toggle_areas.active_areas", player_active_areas) pmeta:set_string("toggle_areas.active_areas", player_active_areas)
end end

Loading…
Cancel
Save