diff --git a/mods/CORE/mcl_explosions/init.lua b/mods/CORE/mcl_explosions/init.lua index b67c7c6a2..2b8b25b1e 100644 --- a/mods/CORE/mcl_explosions/init.lua +++ b/mods/CORE/mcl_explosions/init.lua @@ -13,6 +13,7 @@ under the LGPLv2.1 license. mcl_explosions = {} local mod_fire = minetest.get_modpath("mcl_fire") +local explosions_griefing = minetest.settings:get_bool("mcl_explosions_griefing", true) --local CONTENT_FIRE = minetest.get_content_id("mcl_fire:fire") local math = math @@ -191,7 +192,7 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc local grief_protected = info.grief_protected -- Trace rays for environment destruction - if info.griefing then + if info.griefing and explosions_griefing then for i = 1, #raydirs do local rpos_x = pos.x local rpos_y = pos.y diff --git a/mods/ITEMS/mcl_tnt/init.lua b/mods/ITEMS/mcl_tnt/init.lua index 83c962092..4d7be3125 100644 --- a/mods/ITEMS/mcl_tnt/init.lua +++ b/mods/ITEMS/mcl_tnt/init.lua @@ -1,5 +1,5 @@ local S = minetest.get_translator(minetest.get_current_modname()) -local tnt_griefing = minetest.settings:get_bool("mcl_tnt_griefing", true) +local explosions_griefing = minetest.settings:get_bool("mcl_explosions_griefing", true) tnt = {} @@ -61,7 +61,7 @@ if minetest.get_modpath("mesecons") then end local longdesc -if tnt_griefing then +if explosions_griefing then longdesc = S("An explosive device. When it explodes, it will hurt living beings and destroy blocks around it. TNT has an explosion radius of @1. With a small chance, blocks may drop as an item (as if being mined) rather than being destroyed. TNT can be ignited by tools, explosions, fire, lava and redstone signals." , TNT_RANGE) else diff --git a/settingtypes.txt b/settingtypes.txt index 74d3fc138..628641c54 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -36,8 +36,8 @@ mcl_weather_dust_particles (Nether dust particles) int 150 0 # Note that blocks never have drops when in Creative Mode. mcl_doTileDrops (Blocks have drops) bool true -# If enabled, TNT explosions destroy blocks. -mcl_tnt_griefing (TNT destroys blocks) bool true +# If enabled, explosions destroy blocks. +mcl_explosions_griefing (Explosions destroy blocks) bool true # Comma separated list of disabled structure names mcl_disabled_structures (Disabled structures) string