Update radiation.lua

This commit is contained in:
Panquesito7 2019-08-22 21:46:48 -05:00 committed by GitHub
parent 5738e44fca
commit 6cfdbea7d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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