mirror of
https://github.com/minetest-mods/technic.git
synced 2025-03-20 11:20:31 +01:00
Update radiation.lua
This commit is contained in:
parent
5738e44fca
commit
6cfdbea7d8
@ -309,7 +309,7 @@ local function calculate_object_center(object)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function dmg_object(pos, object, strength)
|
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
|
local mul
|
||||||
if armor_enabled or entity_damage then
|
if armor_enabled or entity_damage then
|
||||||
-- we need to check may the object be damaged even if armor is disabled
|
-- we need to check may the object be damaged even if armor is disabled
|
||||||
@ -513,4 +513,3 @@ if griefing then
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user