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 = "",
|
drop = "",
|
||||||
|
|
||||||
on_timer = function(pos)
|
on_timer = function(pos)
|
||||||
local f = minetest.find_node_near(pos, 1, {"group:flammable"})
|
--local f = minetest.find_node_near(pos, 1, {"group:flammable"})
|
||||||
if not fire_enabled or not f then
|
if not f then
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@ -71,11 +71,11 @@ minetest.register_node("fire:basic_flame", {
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
if not fire_enabled then
|
--if not fire_enabled then
|
||||||
minetest.remove_node(pos)
|
-- minetest.remove_node(pos)
|
||||||
else
|
--else
|
||||||
minetest.get_node_timer(pos):start(math.random(20, 30))
|
minetest.get_node_timer(pos):start(math.random(20, 30))
|
||||||
end
|
--end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_flood = flood_flame,
|
on_flood = flood_flame,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user