From dbe08425141ab036a4e7dfd021fdf317ba80d2c5 Mon Sep 17 00:00:00 2001 From: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Date: Wed, 19 Oct 2022 19:49:27 -0500 Subject: [PATCH] Fixes runtime with eye of god on destroy (#70636) --- code/modules/mining/lavaland/tendril_loot.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mining/lavaland/tendril_loot.dm b/code/modules/mining/lavaland/tendril_loot.dm index 2a14a1fb6e6..447c35e4a82 100644 --- a/code/modules/mining/lavaland/tendril_loot.dm +++ b/code/modules/mining/lavaland/tendril_loot.dm @@ -764,7 +764,9 @@ // Behead someone, their "glasses" drop on the floor // and thus, the god eye should no longer be sticky REMOVE_TRAIT(src, TRAIT_NODROP, EYE_OF_GOD_TRAIT) - scan_ability.Remove(user) + // And remove the scan ability, note that if we're being called from Destroy + // that this may already be nulled and removed + scan_ability?.Remove(user) /obj/item/clothing/glasses/godeye/proc/pain(mob/living/victim) to_chat(victim, span_userdanger("You experience blinding pain, as [src] burrows into your skull."))