mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
object pooled pipe items!
This commit is contained in:
@@ -1121,9 +1121,10 @@
|
||||
"[user] unfastens \the [src].", \
|
||||
"<span class='notice'>You have unfastened \the [src].</span>", \
|
||||
"You hear a ratchet.")
|
||||
new /obj/item/pipe(loc, make_from=src)
|
||||
var/obj/item/pipe/P = getFromPool(/obj/item/pipe,loc)
|
||||
P.New(loc, make_from=src) //new /obj/item/pipe(loc, make_from=src)
|
||||
for (var/obj/machinery/meter/meter in T)
|
||||
if (meter.target == src)
|
||||
new /obj/item/pipe_meter(T)
|
||||
del(meter)
|
||||
qdel(meter)
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user