From 4b6ce2af037852341344aeb3c40b50c024a8a459 Mon Sep 17 00:00:00 2001 From: ShadowLarkens Date: Sun, 23 May 2021 02:54:58 -0700 Subject: [PATCH] Fix only the first RPD ever interacted with working --- code/game/objects/items/weapons/RPD_vr.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/weapons/RPD_vr.dm b/code/game/objects/items/weapons/RPD_vr.dm index bb436a6a34b..d794f9318a2 100644 --- a/code/game/objects/items/weapons/RPD_vr.dm +++ b/code/game/objects/items/weapons/RPD_vr.dm @@ -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))