From 76a39e71b9f81531e14efd7ec1b0accfefa0fa66 Mon Sep 17 00:00:00 2001
From: Luke aka SwissalpS <Luke@SwissalpS.ws>
Date: Wed, 25 Dec 2019 22:23:34 +0100
Subject: [PATCH] Cleanup duplicate call (#522)

---
 technic/radiation.lua |    3 +--
 1 files changed, 1 insertions(+), 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 @@
 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 @@
 		end,
 	})
 end
-

--
Gitblit v1.8.0