diff --git a/code/modules/integrated_electronics/_defines.dm b/code/modules/integrated_electronics/_defines.dm
index 9e0fa6039c8..7e0655c80ce 100644
--- a/code/modules/integrated_electronics/_defines.dm
+++ b/code/modules/integrated_electronics/_defines.dm
@@ -92,6 +92,9 @@
var/mob/M = usr
+ if(!M.canmove || M.stat || M.restrained())
+ return
+
var/input = sanitizeSafe(input("What do you want to name the circuit?", ,""), MAX_NAME_LEN)
if(src && input)
@@ -156,13 +159,14 @@
words += "\[[linked.name]\] \
@ [linked.holder]
"
if(outputs.len > inputs.len)
- height = Floor(outputs.len / inputs.len)
- //world << "I wrote [words] at ([i],[j])."
+ // height = Floor(outputs.len / inputs.len)
+ height = 1 // Because of bugs, if there's more outputs than inputs, it causes the output side to be hidden.
+ //world << "I wrote [words] at ([i],[j]). Height = [height]."
if(2)
if(i == 1)
words = "[src.name]
[src.desc]"
height = row_height
- //world << "I wrote the center piece because i was equal to 1, at ([i],[j])."
+ //world << "I wrote the center piece because i was equal to 1, at ([i],[j]). Height = [height]."
else
continue
if(3)
@@ -179,8 +183,9 @@
words += "\[[linked.name]\] \
@ [linked.holder]
"
if(inputs.len > outputs.len)
- height = Floor(inputs.len / outputs.len)
- //world << "I wrote [words] at ([i],[j])."
+ // height = Floor(inputs.len / outputs.len)
+ height = 1 // See above.
+ //world << "I wrote [words] at ([i],[j]). Height = [height]."
HTML += "