From 765a9e58cd0739de5ae1bbd8bfe007102e20154f Mon Sep 17 00:00:00 2001 From: Guti <32563288+TheCaramelion@users.noreply.github.com> Date: Mon, 6 May 2024 02:03:46 +0200 Subject: [PATCH] Phased Entities Circuitry Fix (#8354) --- code/modules/integrated_electronics/subtypes/input.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/integrated_electronics/subtypes/input.dm b/code/modules/integrated_electronics/subtypes/input.dm index 21605d3420..e525d27038 100644 --- a/code/modules/integrated_electronics/subtypes/input.dm +++ b/code/modules/integrated_electronics/subtypes/input.dm @@ -270,6 +270,8 @@ for(var/atom/thing in nearby_things) if(thing.type != desired_type) continue + if(thing.is_incorporeal()) + continue valid_things.Add(thing) if(valid_things.len) O.data = WEAKREF(pick(valid_things)) @@ -313,11 +315,15 @@ var/desired_type = A.type if(desired_type) for(var/atom/thing in nearby_things) + if(thing.is_incorporeal()) + continue if(thing.type == desired_type) valid_things.Add(thing) else if(istext(I.data)) var/DT = I.data for(var/atom/thing in nearby_things) + if(thing.is_incorporeal()) + continue if(findtext(addtext(thing.name," ",thing.desc), DT, 1, 0) ) valid_things.Add(thing) if(valid_things.len)