Browse Source

fix small mistakes

main
Hendrik Langer 5 years ago
parent
commit
329fe8f7ad
  1. 2
      chatcommands.lua
  2. 5
      items.lua

2
chatcommands.lua

@ -45,8 +45,8 @@ minetest.register_chatcommand("creative_region_privs", {
end end
creative_regions.set_region_privs(tostring(region_id), privstring) creative_regions.set_region_privs(tostring(region_id), privstring)
minetest.chat_send_player(name, "[creative_regions] Privstring set for region " .. region_id .. ": " .. privstring)
creative_regions.save_regions() creative_regions.save_regions()
minetest.chat_send_player(name, "[creative_regions] Privstring set for region " .. region_id .. ": " .. (privstring or "nil"))
return true, "Done" return true, "Done"
end, end,
}) })

5
items.lua

@ -114,14 +114,13 @@ if minetest.get_modpath("areas") then
creative_regions.save_regions() creative_regions.save_regions()
num_removed = num_removed + 1 num_removed = num_removed + 1
end end
end
if num_removed == 1 then if num_removed == 1 then
minetest.chat_send_player(name, "[creative_regions] "..description.." removed for area " .. stored_id) minetest.chat_send_player(name, "[creative_regions] "..description.." removed for area " .. stored_id)
else else
minetest.chat_send_player(name, "[creative_regions] Failed to remove privileges!") minetest.chat_send_player(name, "[creative_regions] Failed to remove privileges!")
minetest.log("warning", "[creative_regions] Failed to remove privileges for "..description..", area id "..stored_id.." at "..dump(pos)) minetest.log("warning", "[creative_regions] Failed to remove privileges for "..description..", area id "..stored_id..", at "..dump(pos))
end
end end
end end
minetest.register_node("creative_regions:protector_nofly", { minetest.register_node("creative_regions:protector_nofly", {

Loading…
Cancel
Save