From 47cc0a98e9775056e5c2a93d8846b271fa2d84fe Mon Sep 17 00:00:00 2001 From: Maximal08 <73069825+Maximal08@users.noreply.github.com> Date: Mon, 11 Aug 2025 23:17:02 +0500 Subject: [PATCH] Fix night vision module (#92506) ## About The Pull Request Fix night vision module before fix image after fix https://github.com/user-attachments/assets/620758c5-ba0d-46bb-b499-0340eea9d24b ## Why It's Good For The Game item was broken, it will work now. ## Changelog :cl: fix: night vision module can now be activated and turned off again. /:cl: --- code/modules/mod/modules/modules_visor.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mod/modules/modules_visor.dm b/code/modules/mod/modules/modules_visor.dm index 57209462732..7897ac404f2 100644 --- a/code/modules/mod/modules/modules_visor.dm +++ b/code/modules/mod/modules/modules_visor.dm @@ -92,9 +92,9 @@ required_slots = list(ITEM_SLOT_HEAD|ITEM_SLOT_EYES|ITEM_SLOT_MASK) /obj/item/mod/module/night/on_activation() - mod.wearer.add_traits(TRAIT_TRUE_NIGHT_VISION, REF(src)) + ADD_TRAIT(mod.wearer, TRAIT_TRUE_NIGHT_VISION, REF(src)) mod.wearer.update_sight() /obj/item/mod/module/night/on_deactivation(display_message = TRUE, deleting = FALSE) - mod.wearer.remove_traits(TRAIT_TRUE_NIGHT_VISION, REF(src)) + REMOVE_TRAIT(mod.wearer, TRAIT_TRUE_NIGHT_VISION, REF(src)) mod.wearer.update_sight()