Rename some things

This commit renames `tnt_griefing` to `explosions_griefing` to better reflect what this setting now does.
This commit is contained in:
FossFanatic 2023-03-09 11:26:30 +00:00 committed by Johannes Fritz
parent 1a1ea29f6e
commit b1a52a3243

View file

@ -13,7 +13,7 @@ under the LGPLv2.1 license.
mcl_explosions = {}
local mod_fire = minetest.get_modpath("mcl_fire")
local tnt_griefing = minetest.settings:get_bool("mcl_tnt_griefing", true)
local explosions_griefing = minetest.settings:get_bool("mcl_explosions_griefing", true)
--local CONTENT_FIRE = minetest.get_content_id("mcl_fire:fire")
local math = math
@ -192,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 and tnt_griefing then
if info.griefing and explosions_griefing then
for i = 1, #raydirs do
local rpos_x = pos.x
local rpos_y = pos.y