summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-10-21 15:20:29 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-10-21 15:20:29 +0100
commitcbefe68049d218111219c42606a36f65c1fc241c (patch)
tree14568fefe1bc87e87f7c9c65714ce6a922f75a58 /api.lua
parentb8d3792aa646f4480fa2a2c2b300aeda3092ff32 (diff)
re-add check for unbreakable nodes for fireballs
Diffstat (limited to 'api.lua')
-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