From 5facf34cdd8126f5bdfc13918e06343fdbe063ce Mon Sep 17 00:00:00 2001 From: number Zero Date: Mon, 11 Apr 2016 16:04:11 +0300 Subject: [PATCH] Bugfix --- technic/radiation.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/technic/radiation.lua b/technic/radiation.lua index 06eb411..13936f9 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -304,9 +304,10 @@ end local function dmg_object(pos, object, strength) local obj_pos = vector.add(object:getpos(), calculate_object_center(object)) + local mul if armor_enabled or entity_damage then -- we need to check may the object be damaged even if armor is disabled - local mul = calculate_damage_multiplier(object) + mul = calculate_damage_multiplier(object) if mul == 0 then return end