Add protection support to lavacooling functions

This commit is contained in:
Craig Davison 2015-01-17 19:54:21 +00:00
parent 5d8b2442ce
commit cb8a264450

View file

@ -122,7 +122,9 @@ minetest.register_abm({
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
default.cool_lava_flowing(pos, node, active_object_count, active_object_count_wider)
if not minetest.is_protected(pos, "") then
default.cool_lava_flowing(pos, node, active_object_count, active_object_count_wider)
end
end,
})
@ -132,7 +134,9 @@ minetest.register_abm({
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
default.cool_lava_source(pos, node, active_object_count, active_object_count_wider)
if not minetest.is_protected(pos, "") then
default.cool_lava_source(pos, node, active_object_count, active_object_count_wider)
end
end,
})