Browse Source

fix areas id

main
Hendrik Langer 5 years ago
parent
commit
9e6c27ac12
  1. 14
      init.lua

14
init.lua

@ -74,11 +74,15 @@ minetest.register_chatcommand("creative_area_privs", {
if not found then if not found then
return false, "Syntax error" return false, "Syntax error"
end end
area_id = tonumber(area_id) area_id = tostring(area_id)
switch_creative:set_area_privs(area_id, privstring) if privstring and area_id then
minetest.chat_send_player(name, "[creative_area] Privstring set for area " .. area_id .. ": " .. privstring) switch_creative:set_area_privs(area_id, privstring)
switch_creative:save_areas() minetest.chat_send_player(name, "[creative_area] Privstring set for area " .. area_id .. ": " .. privstring)
return true, "Done." switch_creative:save_areas()
return true, "Done."
else
return false, "Failed."
end
end, end,
}) })

Loading…
Cancel
Save