mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 07:39:13 +01:00
[MIRROR] Cleans empty newlines from circuit assembly examine text (#11262)
Co-authored-by: Jenny <ghosttehspychecka@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Jenny
Kashargul
parent
df16cf278f
commit
36f3381b03
@@ -210,9 +210,10 @@
|
||||
. = ..()
|
||||
if(Adjacent(user))
|
||||
for(var/obj/item/integrated_circuit/IC in contents)
|
||||
var/external_examine = IC.external_examine(user)
|
||||
if (external_examine != null)
|
||||
. += external_examine
|
||||
// Make sure there's actually examine text to prevent empty lines being printed for EVERY component!
|
||||
var/examine_text = IC.external_examine(user)
|
||||
if (length(examine_text))
|
||||
. += examine_text
|
||||
if(opened)
|
||||
tgui_interact(user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user