Fixes the RPD (again (hopefully for the last time (fingers crossed)))

Indentation error caused you to be unable to select new pipe type & static vars made it so any RPD after the first would cause TGUI to break
This commit is contained in:
EnbyFriend
2023-03-17 00:59:03 -05:00
parent 0fd3a44517
commit c6aab291fe
+4 -4
View File
@@ -31,9 +31,9 @@
var/category = ATMOS_CATEGORY
var/piping_layer = PIPING_LAYER_DEFAULT
var/obj/item/tool/wrench/tool
var/datum/pipe_recipe/recipe // pipe recipie selected for display/construction
var/static/datum/pipe_recipe/first_atmos
var/static/datum/pipe_recipe/first_disposal
var/datum/pipe_recipe/recipe
var/datum/pipe_recipe/first_atmos
var/datum/pipe_recipe/first_disposal
var/mode = BUILD_MODE | DESTROY_MODE | WRENCH_MODE
var/static/list/pipe_layers = list(
"Regular" = PIPING_LAYER_REGULAR,
@@ -53,7 +53,7 @@
/obj/item/pipe_dispenser/proc/SetupPipes()
if(!first_atmos)
first_atmos = GLOB.atmos_pipe_recipes[GLOB.atmos_pipe_recipes[1]][1]
recipe = first_atmos
recipe = first_atmos
if(!first_disposal)
first_disposal = GLOB.disposal_pipe_recipes[GLOB.disposal_pipe_recipes[1]][1]