mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Fixes AND/OR gates ignoring a port if it has a null value but it is still connected to another port (#59348)
Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
@@ -23,7 +23,7 @@ GLOBAL_LIST_INIT(comp_logic_options, list(
|
||||
var/total_ports = 0
|
||||
var/total_true_ports = 0
|
||||
for(var/datum/port/input/port as anything in ports)
|
||||
if(isnull(port.input_value))
|
||||
if(isnull(port.input_value) && isnull(port.connected_port))
|
||||
continue
|
||||
|
||||
total_ports += 1
|
||||
|
||||
Reference in New Issue
Block a user