From ff9b288db81a11efb50f148ca3e3c5e2c60f6a5a Mon Sep 17 00:00:00 2001 From: Ralf Weinert Date: Wed, 17 Apr 2019 22:11:56 +0200 Subject: [PATCH] some minor changes (readme.md) --- README.md | 5 +++++ raz.lua | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ffa3179..2cafeac 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ This is work in progress. + +April 2019 by downad +added support for raz (Regions, Areas and Zones for Minetest) +https://github.com/downad/raz + diff --git a/raz.lua b/raz.lua index a7c30ca..266059d 100644 --- a/raz.lua +++ b/raz.lua @@ -94,7 +94,11 @@ function markers:player_can_add_region(pos1, pos2, name) if not minetest.check_player_privs(name, { region_mark = true }) then return false, "You dont have the privileg 'region_mark' " end - if raz:get_area_by_pos1_pos2(pos1, pos2) ~= nil then + local err = raz:player_can_mark_region(pos1, pos2, name) + minetest.log("action", "[" .. markers.modname .. "] markers:player_can_add_region(pos1, pos2, name) err = "..tostring(err) ) + if err ~= true then +-- if raz:get_area_by_pos1_pos2(pos1, pos2) ~= nil then + raz:msg_handling(err, name) -- message and error handling return false, "The pos1,pos2 are in an other region! - You can not mark the region." end