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()
|
||||
|
||||
tnt.boom(pos, {
|
||||
radius = radius,
|
||||
damage_radius = damage_radius,
|
||||
})
|
||||
if minetest.get_modpath("tnt") then
|
||||
|
||||
tnt.boom(pos, {
|
||||
radius = radius,
|
||||
damage_radius = damage_radius,
|
||||
})
|
||||
else
|
||||
entity_physics(pos, damage_radius)
|
||||
end
|
||||
|
||||
return
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
default
|
||||
tnt
|
||||
tnt?
|
||||
dye?
|
||||
farming?
|
||||
invisibility?
|
||||
|
|
Loading…
Reference in New Issue
Block a user