turn off debug
This commit is contained in:
parent
c3f94dda6d
commit
8c8858601f
@ -35,14 +35,14 @@ function staffcheck(player)
|
|||||||
local stafflevel = 0
|
local stafflevel = 0
|
||||||
if minetest.check_player_privs(player:get_player_name(), {staffer=true}) then stafflevel = 1; end
|
if minetest.check_player_privs(player:get_player_name(), {staffer=true}) then stafflevel = 1; end
|
||||||
if minetest.check_player_privs(player:get_player_name(), {creative=true}) then stafflevel = 100; end
|
if minetest.check_player_privs(player:get_player_name(), {creative=true}) then stafflevel = 100; end
|
||||||
minetest.chat_send_all("Staff level : "..stafflevel)
|
--minetest.chat_send_all("Staff level : "..stafflevel)
|
||||||
return stafflevel
|
return stafflevel
|
||||||
end
|
end
|
||||||
|
|
||||||
function isforbidden(nodename)
|
function isforbidden(nodename)
|
||||||
for _,pat in pairs(vivarium.forbidden_nodes) do
|
for _,pat in pairs(vivarium.forbidden_nodes) do
|
||||||
if string.match(nodename,pat) then
|
if string.match(nodename,pat) then
|
||||||
minetest.chat_send_all("Forbidden : "..nodename)
|
--minetest.chat_send_all("Forbidden : "..nodename)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -339,7 +339,7 @@ minetest.register_tool("vivarium:staff_melt", {
|
|||||||
if fpos.y > 0 and replname == "default:water_source" then -- don't bother with water above sea level
|
if fpos.y > 0 and replname == "default:water_source" then -- don't bother with water above sea level
|
||||||
replname = "air"
|
replname = "air"
|
||||||
end
|
end
|
||||||
minetest.chat_send_all("Replicating "..replname)
|
--minetest.chat_send_all("Replicating "..replname)
|
||||||
if isforbidden(replname) then
|
if isforbidden(replname) then
|
||||||
replname = "default:dirt"
|
replname = "default:dirt"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user