removes pipe construction cache (#32516)

This commit is contained in:
duncathan salt
2017-11-09 11:13:53 -06:00
committed by CitadelStationBot
parent cde4d39989
commit 3c8eef9243
3 changed files with 21 additions and 26 deletions
+2 -4
View File
@@ -580,10 +580,8 @@ GLOBAL_LIST_INIT(RPD_recipes, list(
if(do_after(user, 2, target = A))
activate()
var/pipe_item_type = /obj/item/pipe
var/obj/machinery/atmospherics/cached_pipe = SSair.get_pipe_cache(queued_p_type)
if(istype(cached_pipe) && cached_pipe.construction_type)
pipe_item_type = cached_pipe.construction_type
var/obj/machinery/atmospherics/path = queued_p_type
var/pipe_item_type = initial(path.construction_type) || /obj/item/pipe
var/obj/item/pipe/P = new pipe_item_type(A, queued_p_type, queued_p_dir)