Mobs Redo: Fix mobs:boom not depending on mcl_tnt
This commit is contained in:
parent
6253ffd78b
commit
a0347a6700
|
@ -3013,7 +3013,7 @@ end
|
||||||
-- make explosion with protection and tnt mod check
|
-- make explosion with protection and tnt mod check
|
||||||
function mobs:boom(self, pos, radius)
|
function mobs:boom(self, pos, radius)
|
||||||
|
|
||||||
if minetest.get_modpath("tnt") and tnt and tnt.boom
|
if minetest.get_modpath("mcl_tnt") and tnt and tnt.boom
|
||||||
and not minetest.is_protected(pos, "") then
|
and not minetest.is_protected(pos, "") then
|
||||||
|
|
||||||
tnt.boom(pos, {
|
tnt.boom(pos, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user