From 6cfdbea7d82720d0e7d62907fc1f1aa7ca5f1b56 Mon Sep 17 00:00:00 2001 From: Panquesito7 <51391473+Panquesito7@users.noreply.github.com> Date: Thu, 22 Aug 2019 21:46:48 -0500 Subject: [PATCH] Update radiation.lua --- technic/radiation.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/technic/radiation.lua b/technic/radiation.lua index f0d7f61..dd476c5 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -309,7 +309,7 @@ local function calculate_object_center(object) end local function dmg_object(pos, object, strength) - local obj_pos = vector.add(object:getpos(), calculate_object_center(object)) + local obj_pos = vector.add(object:get_pos(), 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 @@ -513,4 +513,3 @@ if griefing then end, }) end -