add armor mod check

master
TenPlus1 2016-06-11 12:09:03 +01:00
parent 965be82ea6
commit 5fb51d53ad
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ function setSprinting(name, sprinting)
-- is 3d_armor active, then set to armor defaults
local def = {}
if armor and armor.def[name] then
if armor_mod and armor and armor.def[name] then
def = armor.def[name]
end