1
0
鏡像自 https://github.com/Sokomine/markers.git 已同步 2025-11-05 02:05:33 +01:00

some minor changes (readme.md)

此提交包含在:
Ralf Weinert
2019-04-17 22:11:56 +02:00
父節點 53b2e386bd
當前提交 ff9b288db8
共有 2 個檔案被更改,包括 10 行新增1 行删除

查看文件

@@ -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

查看文件

@@ -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