Fix only the first RPD ever interacted with working

This commit is contained in:
ShadowLarkens
2021-05-23 02:54:58 -07:00
parent a5a0c20af6
commit 4b6ce2af03
+2 -2
View File
@@ -54,9 +54,10 @@
/obj/item/weapon/pipe_dispenser/proc/SetupPipes()
if(!first_atmos)
first_atmos = GLOB.atmos_pipe_recipes[GLOB.atmos_pipe_recipes[1]][1]
recipe = first_atmos
if(!first_disposal)
first_disposal = GLOB.disposal_pipe_recipes[GLOB.disposal_pipe_recipes[1]][1]
if(!recipe)
recipe = first_atmos
/obj/item/weapon/pipe_dispenser/Destroy()
qdel_null(spark_system)
@@ -119,7 +120,6 @@
return data
/obj/item/weapon/pipe_dispenser/tgui_act(action, params)
SetupPipes()
if(..())
return TRUE
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))