Update blast resistant concrete on_blast() to new TNT API

The destroyed item is now returned instead of being directly dropped, and the blast intensity value has changed.
This commit is contained in:
MT-Modder 2016-10-04 19:37:26 -04:00 committed by ShadowNinja
parent 322615542e
commit 99bebc8008

View File

@ -84,9 +84,9 @@ minetest.register_node(":technic:blast_resistant_concrete", {
groups = {cracky=1, level=3, concrete=1},
sounds = default.node_sound_stone_defaults(),
on_blast = function(pos, intensity)
if intensity > 1 then
if intensity > 9 then
minetest.remove_node(pos)
minetest.add_item(pos, "technic:blast_resistant_concrete")
return {"technic:blast_resistant_concrete"}
end
end,
})