Browse Source

fix error message for ambiguous area

main
Hendrik Langer 4 years ago
parent
commit
c5a108a70f
  1. 6
      items.lua

6
items.lua

@ -27,7 +27,11 @@ if minetest.get_modpath("areas") then
if num_current_areas == 1 then
player_owns_id = current_area_id
else
minetest.chat_send_player(name, "[creative_regions] Area ambiguous: You are in multiple areas.")
if num_current_areas > 1 then
minetest.chat_send_player(name, "[creative_regions] Area ambiguous: You are in multiple areas.")
else
minetest.chat_send_player(name, "[creative_regions] no Area: You are not in an area.")
end
minetest.after(0.2, function(pos)
minetest.remove_node(pos)
end, pos)

Loading…
Cancel
Save