Add some comments regarding on_blast

This commit is contained in:
Wuzzy 2015-03-07 17:25:55 +01:00
parent 47636791b1
commit 65bf238f1e
3 changed files with 5 additions and 0 deletions

View file

@ -26,6 +26,7 @@ function doors.register_door(name, def)
def.sound_open_door = "doors_door_open"
end
if def.only_placer_can_open then
-- unaffected by explosions
def.on_blast = function() end
end

View file

@ -25,6 +25,7 @@ minetest.register_node("fire:basic_flame", {
minetest.after(0, fire.on_flame_remove_at, pos)
end,
-- unaffected by explosions
on_blast = function() end,
})

View file

@ -248,6 +248,7 @@ minetest.register_node("tnt:tnt_burning", {
drop = "",
sounds = default.node_sound_wood_defaults(),
on_timer = boom,
-- unaffected by explosions
on_blast = function() end,
})
@ -261,6 +262,7 @@ minetest.register_node("tnt:boom", {
on_timer = function(pos, elapsed)
minetest.remove_node(pos)
end,
-- unaffected by explosions
on_blast = function() end,
})
@ -328,6 +330,7 @@ minetest.register_node("tnt:gunpowder_burning", {
end
minetest.remove_node(pos)
end,
-- unaffected by explosions
on_blast = function() end,
})