Fixed a runtime error with the new gadpathur origin item (#18960)

Fixed a runtime error with the new gadpathur origin item
This commit is contained in:
Fluffy
2024-04-15 20:11:29 +00:00
committed by GitHub
parent d109aeff47
commit 2cf2983507
2 changed files with 60 additions and 2 deletions
@@ -71,7 +71,7 @@
/singleton/origin_item/origin/gadpathur/on_remove(mob/living/carbon/human/H)
. = ..()
var/datum/component/armor/armor_component = H.GetComponent(/datum/component/armor)
armor_component.RemoveComponent()
armor_component?.RemoveComponent()
/singleton/origin_item/origin/gadpathur_exile
name = "Gadpathurian Exile"
@@ -89,7 +89,7 @@
/singleton/origin_item/origin/gadpathur_exile/on_remove(mob/living/carbon/human/H)
. = ..()
var/datum/component/armor/armor_component = H.GetComponent(/datum/component/armor)
armor_component.RemoveComponent()
armor_component?.RemoveComponent()
/singleton/origin_item/origin/assunzione
name = "Republic of Assunzione"