Try different fix for broken setting

This commit is contained in:
FossFanatic 2023-03-07 09:15:59 +00:00 committed by Johannes Fritz
parent 8b0d195906
commit af8c4ded93
1 changed files with 2 additions and 6 deletions

View File

@ -192,7 +192,7 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc
local grief_protected = info.grief_protected local grief_protected = info.grief_protected
-- Trace rays for environment destruction -- Trace rays for environment destruction
if info.griefing then if info.griefing and tnt_griefing then
for i = 1, #raydirs do for i = 1, #raydirs do
local rpos_x = pos.x local rpos_x = pos.x
local rpos_y = pos.y local rpos_y = pos.y
@ -360,11 +360,7 @@ local function trace_explode(pos, strength, raydirs, radius, info, direct, sourc
for hash, idx in pairs(destroy) do for hash, idx in pairs(destroy) do
local do_drop = math.random() <= drop_chance local do_drop = math.random() <= drop_chance
local on_blast = node_on_blast[data[idx]] local on_blast = node_on_blast[data[idx]]
if (not tnt_griefing) and info.is_tnt ~= false then local remove = true
local remove = false
else
local remove = true
end
if do_drop or on_blast then if do_drop or on_blast then
local npos = get_position_from_hash(hash) local npos = get_position_from_hash(hash)