Make fire permanent when param1 == 1

This commit is contained in:
bas080 2013-07-26 04:43:57 +02:00
parent 90fde974a2
commit fe5e0efc10

View file

@ -155,6 +155,8 @@ minetest.register_abm({
interval = 1,
chance = 2,
action = function(p0, node, _, _)
--If fire is permanent then do not allow destroy
if minetest.env:get_node(p0).param1 == 1 then return end
-- If there is water or stuff like that around flame, remove flame
if fire.flame_should_extinguish(p0) then
minetest.remove_node(p0)