mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-10 20:40:27 +01:00
Bugfix
This commit is contained in:
parent
47742ee3e9
commit
5facf34cdd
|
@ -304,9 +304,10 @@ 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:getpos(), calculate_object_center(object))
|
||||||
|
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
|
||||||
local mul = calculate_damage_multiplier(object)
|
mul = calculate_damage_multiplier(object)
|
||||||
if mul == 0 then
|
if mul == 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user