make fire nodes possible again
This commit is contained in:
parent
04ac38a3bb
commit
3f3f29fe8c
12
mods/fire/init.lua
Normal file → Executable file
12
mods/fire/init.lua
Normal file → Executable file
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user