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
5
api.lua
5
api.lua
|
@ -1694,10 +1694,15 @@ local do_states = function(self, dtime)
|
||||||
|
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
|
||||||
|
if minetest.get_modpath("tnt") then
|
||||||
|
|
||||||
tnt.boom(pos, {
|
tnt.boom(pos, {
|
||||||
radius = radius,
|
radius = radius,
|
||||||
damage_radius = damage_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