Skip to content

Commit 75c9f0d

Browse files
fix bapping rd console with disks (ParadiseSS13#29447)
1 parent 5a29851 commit 75c9f0d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

code/modules/research/rdconsole.dm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,18 @@ won't update every console in existence) but it's more of a hassle to do. Also,
182182
/obj/machinery/computer/rdconsole/item_interaction(mob/living/user, obj/item/used, list/modifiers)
183183
//Loading a disk into it.
184184
if(istype(used, /obj/item/disk))
185+
. = ITEM_INTERACT_COMPLETE
185186
if(t_disk || d_disk)
186187
to_chat(user, "A disk is already loaded into the machine.")
187-
return ITEM_INTERACT_COMPLETE
188+
return
188189

189190
if(istype(used, /obj/item/disk/tech_disk)) t_disk = used
190191
else if(istype(used, /obj/item/disk/design_disk)) d_disk = used
191192
else
192193
to_chat(user, "<span class='danger'>Machine cannot accept disks in that format.</span>")
193-
return ITEM_INTERACT_COMPLETE
194+
return
194195
if(!user.drop_item())
195-
return ITEM_INTERACT_COMPLETE
196+
return
196197
used.loc = src
197198
to_chat(user, "<span class='notice'>You add the disk to the machine!</span>")
198199
else if(!(linked_analyzer && linked_analyzer.busy) && !(linked_lathe && linked_lathe.busy) && !(linked_imprinter && linked_imprinter.busy))

0 commit comments

Comments
 (0)