[walking_light] Add 'helmet_gold' to walking light items

This commit is contained in:
AntumDeluge 2017-04-07 20:34:28 -07:00
parent aeea828adc
commit 23b72ace0c

View File

@ -14,7 +14,8 @@ walking_light = {}
-- list of items that use walking light
local light_items = {
"default:torch", "walking_light:pick_mese",
"walking_light:helmet_diamond", "walking_light:megatorch"
"walking_light:helmet_diamond", "walking_light:megatorch",
"walking_light:helmet_gold",
}
function walking_light.addLightItem(item)
@ -430,6 +431,13 @@ function get_wielded_light_item(player)
if armor_inv:contains_item("armor", stack) then
return item_name
end
-- Gold helmet
local item_name = "walking_light:helmet_gold"
local stack = ItemStack(item_name)
if armor_inv:contains_item("armor", stack) then
return item_name
end
end
end