Skip to content

Commit

Permalink
Merge pull request #34660 from Spookerton/spkrtn/fix/millinery-inequa…
Browse files Browse the repository at this point in the history
…lity

process_visors no longer tries to steal accessories from kittens
  • Loading branch information
Spookerton committed Jun 11, 2024
2 parents 709e3d0 + ab81ea0 commit b25d4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/living/carbon/human/human_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
/mob/living/carbon/human/proc/process_visor(obj/item/clothing/head/hat, obj/item/clothing/glasses/eyewear)
remove_client_color(/datum/client_color/monochrome)
remove_client_color(/datum/client_color/nvg)
if (hat)
if (istype(hat))
for(var/obj/item/clothing/accessory/glassesmod/mod in hat.accessories)
if (mod?.active)
equipment_darkness_modifier += mod.darkness_view
Expand All @@ -115,7 +115,7 @@
add_client_color(/datum/client_color/nvg)
add_clothing_protection(mod)
mod.process_hud(src)
if (eyewear)
if (istype(eyewear))
for(var/obj/item/clothing/accessory/glassesmod/mod in eyewear.accessories)
if (mod?.active)
equipment_darkness_modifier += mod.darkness_view
Expand Down

0 comments on commit b25d4fc

Please sign in to comment.