diff --git a/api.lua b/api.lua index ac7d5fe..a42b515 100644 --- a/api.lua +++ b/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 diff --git a/depends.txt b/depends.txt index cf0f10f..258743b 100644 --- a/depends.txt +++ b/depends.txt @@ -1,5 +1,5 @@ default -tnt +tnt? dye? farming? invisibility?