mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-28 23:30:42 +02: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…
Reference in New Issue
Block a user