summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/api.lua b/api.lua
index d966526..413a460 100644
--- a/api.lua
+++ b/api.lua
@@ -2650,6 +2650,8 @@ function mobs:explosion(pos, radius, fire, smoke, sound)
if on_blast then
return on_blast(p)
+ elseif minetest.registered_nodes[n].groups.unbreakable == 1 then
+ -- do nothing
else
-- after effects
if fire > 0