From c5a108a70f585f53caa77c3b155d567eb74e6ef1 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Thu, 22 Oct 2020 20:27:52 +0200 Subject: [PATCH] fix error message for ambiguous area --- items.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/items.lua b/items.lua index 74a653d..9c60cad 100644 --- a/items.lua +++ b/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)