summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMT-Modder <MT-Modder@users.noreply.github.com>2016-03-20 00:08:50 -0400
committerShadowNinja <shadowninja@minetest.net>2016-03-20 00:08:50 -0400
commit0c144cd75c638f1f1c67ae91973f3ff8ffc781dd (patch)
tree19eed7e437849c4b6c56375d7bdb689109d2a26c
parent85a984982cdf269c24b2cb098203cbb22cb0d7d0 (diff)
Make blast-resistant concrete blast resistant
-rw-r--r--concrete/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/concrete/init.lua b/concrete/init.lua
index 599a27b..4d5e781 100644
--- a/concrete/init.lua
+++ b/concrete/init.lua
@@ -83,6 +83,12 @@ minetest.register_node(":technic:blast_resistant_concrete", {
tiles = {"technic_blast_resistant_concrete_block.png",},
groups = {cracky=1, level=3, concrete=1},
sounds = default.node_sound_stone_defaults(),
+ on_blast = function(pos, intensity)
+ if intensity > 1 then
+ minetest.remove_node(pos)
+ minetest.add_item(pos, "technic:blast_resistant_concrete")
+ end
+ end,
})