forked from VoxeLibre/VoxeLibre
protected nodes are not flammables
This commit is contained in:
parent
b96fb2af17
commit
265271a5f7
|
@ -45,7 +45,8 @@ local function has_flammable(pos)
|
||||||
for k,v in pairs(adjacents) do
|
for k,v in pairs(adjacents) do
|
||||||
local p=vector.add(pos,v)
|
local p=vector.add(pos,v)
|
||||||
local n=minetest.get_node_or_nil(p)
|
local n=minetest.get_node_or_nil(p)
|
||||||
if n and minetest.get_item_group(n.name, "flammable") ~= 0 then
|
if n and not minetest.is_protected(pos, "")
|
||||||
|
and minetest.get_item_group(n.name, "flammable") ~= 0 then
|
||||||
return p
|
return p
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue