forked from mtcontrib/mobs_redo
explosions use tnt.boom() when TNT mod found, otherwise only entity damage
This commit is contained in:
parent
7e09281760
commit
7b02fef7a5
13
api.lua
13
api.lua
|
@ -1694,10 +1694,15 @@ local do_states = function(self, dtime)
|
||||||
|
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
|
||||||
tnt.boom(pos, {
|
if minetest.get_modpath("tnt") then
|
||||||
radius = radius,
|
|
||||||
damage_radius = damage_radius,
|
tnt.boom(pos, {
|
||||||
})
|
radius = radius,
|
||||||
|
damage_radius = damage_radius,
|
||||||
|
})
|
||||||
|
else
|
||||||
|
entity_physics(pos, damage_radius)
|
||||||
|
end
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
default
|
default
|
||||||
tnt
|
tnt?
|
||||||
dye?
|
dye?
|
||||||
farming?
|
farming?
|
||||||
invisibility?
|
invisibility?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user