mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-02 08:20:21 +02:00
explosions use tnt.boom() when TNT mod found, otherwise only entity damage
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user