forked from VoxeLibre/VoxeLibre
Fix nodes with “flammable = -1” not catching fire
This commit is contained in:
parent
052c9fcbcf
commit
6c2fb98160
|
@ -47,7 +47,7 @@ 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 minetest.get_item_group(n.name, "flammable") ~= 0 then
|
||||||
return p
|
return p
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue