Fix nodes with “flammable = -1” not catching fire

This commit is contained in:
cora 2022-01-23 11:19:55 +01:00 committed by Nils Dagsson Moskopp
parent 052c9fcbcf
commit 6c2fb98160
Signed by untrusted user who does not match committer: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ local function has_flammable(pos)
for k,v in pairs(adjacents) do
local p=vector.add(pos,v)
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
end
end