summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMT-Modder <MT-Modder@users.noreply.github.com>2016-10-04 19:37:26 -0400
committerShadowNinja <ShadowNinja@users.noreply.github.com>2016-10-04 19:37:26 -0400
commit99bebc800891ef83948122864ec1fceacb160010 (patch)
treee938e52af28ab1a50cf047ec7629510712655de7
parent322615542e570f6363c7006b90f334e9ffd722c8 (diff)
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.
-rw-r--r--concrete/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/concrete/init.lua b/concrete/init.lua
index 4d5e781..66564ba 100644
--- a/concrete/init.lua
+++ b/concrete/init.lua
@@ -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,
})