mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 09:36:27 -04:00
Add protection support to lavacooling functions
This commit is contained in:
parent
5d8b2442ce
commit
cb8a264450
1 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue