From 787d997e516c03d18747978ce268c1c7ab24f8e3 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Thu, 11 Mar 2021 23:08:51 +0100 Subject: [PATCH] fix warnings in mcl_explosion --- mods/CORE/mcl_explosions/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_explosions/init.lua b/mods/CORE/mcl_explosions/init.lua index 379d570011..2ac6eb0c66 100644 --- a/mods/CORE/mcl_explosions/init.lua +++ b/mods/CORE/mcl_explosions/init.lua @@ -335,13 +335,13 @@ local function trace_explode(pos, strength, raydirs, radius, info, puncher) minetest.after(0.3, function(obj, damage, impact, punch_dir) -- 0.2 is minimum delay for closing old formspec and open died formspec -- TODO: REMOVE THIS IN THE FUTURE if not obj then return end obj:punch(obj, 10, { damage_groups = { full_punch_interval = 1, fleshy = damage, knockback = impact * 20.0 } }, punch_dir) - obj:add_player_velocity(vector.multiply(punch_dir, impact * 20)) + obj:add_velocity(vector.multiply(punch_dir, impact * 20)) end, obj, damage, impact, vector.new(punch_dir)) else obj:punch(source, 10, { damage_groups = { full_punch_interval = 1, fleshy = damage, knockback = impact * 20.0 } }, punch_dir) if obj:is_player() then - obj:add_player_velocity(vector.multiply(punch_dir, impact * 20)) + obj:add_velocity(vector.multiply(punch_dir, impact * 20)) elseif ent.tnt_knockback then obj:add_velocity(vector.multiply(punch_dir, impact * 20)) end