mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-10 20:40:27 +01:00
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},
|
||||
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,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user