Fix variable == nil error.

This commit is contained in:
Duane 2016-07-19 12:00:20 -05:00
parent b2c104d53a
commit a1a5fb0a7f
5 changed files with 135 additions and 2 deletions

View file

@ -322,7 +322,7 @@ if fun_caves.register_status and fun_caves.set_status then
end
local armor = player:get_armor_groups()
if not (armor and armor.fleshy and armor.fleshy ~= value) then
if not (armor and armor.fleshy and armor.fleshy >= value) then
return
end