From c1fedad69188d02beaa2d5b09a253ac13c892356 Mon Sep 17 00:00:00 2001 From: DonBatman Date: Thu, 12 May 2016 18:45:09 -0700 Subject: [PATCH] Added areas support --- depends.txt | 1 + init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 depends.txt diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..a18cd91 --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +areas diff --git a/init.lua b/init.lua index 340a200..c56003e 100644 --- a/init.lua +++ b/init.lua @@ -90,7 +90,7 @@ local function tpc_send(player,coordinates) -- In future release we'll actually query the player who owns the area, if they're online, and ask for their permission. local protected = minetest.is_protected(target_coords,pname) if protected then - local owner_string = get_owner_string(target_coords) + local owner_string = areas:getNodeOwners(target_coords) if pname ~= owner_string then minetest.chat_send_player(player, "Error: These coordinates are within a protected area.") return