Skip to content
Snippets Groups Projects
Commit 3f3f29fe authored by Milan's avatar Milan
Browse files

make fire nodes possible again

parent 04ac38a3
No related branches found
No related tags found
No related merge requests found
Pipeline #1052 failed
......@@ -61,8 +61,8 @@ minetest.register_node("fire:basic_flame", {
drop = "",
on_timer = function(pos)
local f = minetest.find_node_near(pos, 1, {"group:flammable"})
if not fire_enabled or not f then
--local f = minetest.find_node_near(pos, 1, {"group:flammable"})
if not f then
minetest.remove_node(pos)
return
end
......@@ -71,11 +71,11 @@ minetest.register_node("fire:basic_flame", {
end,
on_construct = function(pos)
if not fire_enabled then
minetest.remove_node(pos)
else
--if not fire_enabled then
-- minetest.remove_node(pos)
--else
minetest.get_node_timer(pos):start(math.random(20, 30))
end
--end
end,
on_flood = flood_flame,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment