forked from minetest-mods/technic
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:
parent
322615542e
commit
99bebc8008
|
@ -84,9 +84,9 @@ minetest.register_node(":technic:blast_resistant_concrete", {
|
||||||
groups = {cracky=1, level=3, concrete=1},
|
groups = {cracky=1, level=3, concrete=1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
on_blast = function(pos, intensity)
|
on_blast = function(pos, intensity)
|
||||||
if intensity > 1 then
|
if intensity > 9 then
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
minetest.add_item(pos, "technic:blast_resistant_concrete")
|
return {"technic:blast_resistant_concrete"}
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user