mirror of
https://github.com/Sokomine/markers.git
synced 2024-11-15 14:50:24 +01:00
some minor changes (readme.md)
This commit is contained in:
parent
53b2e386bd
commit
ff9b288db8
|
@ -1,3 +1,8 @@
|
||||||
|
|
||||||
This is work in progress.
|
This is work in progress.
|
||||||
|
|
||||||
|
|
||||||
|
April 2019 by downad
|
||||||
|
added support for raz (Regions, Areas and Zones for Minetest)
|
||||||
|
https://github.com/downad/raz
|
||||||
|
|
||||||
|
|
6
raz.lua
6
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
|
if not minetest.check_player_privs(name, { region_mark = true }) then
|
||||||
return false, "You dont have the privileg 'region_mark' "
|
return false, "You dont have the privileg 'region_mark' "
|
||||||
end
|
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."
|
return false, "The pos1,pos2 are in an other region! - You can not mark the region."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user