mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Some ITEM_SLOT bitflags fixes. (#92441)
## About The Pull Request This PR fixes wrong usage of bitflags in a few places, where instead of bitfields lists were used. ## Why It's Good For The Game It will help prevent problems that can be a thing in the future, improving consistency of the codebase.
This commit is contained in:
@@ -1057,7 +1057,7 @@
|
||||
/obj/item/mod/module/hearing_protection/on_part_activation()
|
||||
var/obj/item/clothing/head_cover = mod.get_part_from_slot(ITEM_SLOT_HEAD) || mod.get_part_from_slot(ITEM_SLOT_MASK) || mod.get_part_from_slot(ITEM_SLOT_EYES)
|
||||
if(istype(head_cover))
|
||||
head_cover.AddComponent(/datum/component/wearertargeting/earprotection, list(ITEM_SLOT_HEAD))
|
||||
head_cover.AddComponent(/datum/component/wearertargeting/earprotection)
|
||||
var/datum/component/wearertargeting/earprotection/protection = head_cover.GetComponent(/datum/component/wearertargeting/earprotection)
|
||||
protection.on_equip(src, mod.wearer, ITEM_SLOT_HEAD)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user