diff --git a/minetest.conf b/minetest.conf index 8a50603..0cbe5f3 100644 --- a/minetest.conf +++ b/minetest.conf @@ -4,6 +4,7 @@ [subnasa-player-server] enable_pvp = true +enable_tnt = true creative_mode = false enable_damage = true default_privs = interact, shout diff --git a/mods/mobs_jam/balrog.lua b/mods/mobs_jam/balrog.lua index 34d5cc2..0299e47 100644 --- a/mods/mobs_jam/balrog.lua +++ b/mods/mobs_jam/balrog.lua @@ -117,6 +117,7 @@ if (PATH_FINDER == nil) then PATH_FINDER = 1 end +local enable_tnt = minetest.settings:get_bool("enable_tnt") local spawn_nodes = {"group:stone"} if minetest.get_modpath("nether") then @@ -206,15 +207,18 @@ mobs:register_mob("mobs_jam:balrog", { texture = "fire_basic_flame.png", collisiondetection = true, }) - tnt.boom(pos, { - name = "Balrog's Blast", - radius = 14, - damage_radius = 50, - disable_drops = true, - ignore_protection = false, - ignore_on_blast = false, - tiles = {""}, - }) + -- Default to enabled when in singleplayer + if enable_tnt then + tnt.boom(pos, { + name = "Balrog's Blast", + radius = 14, + damage_radius = 50, + disable_drops = true, + ignore_protection = false, + ignore_on_blast = false, + tiles = {""}, + }) + end end) end, })