mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 17:42:26 +00:00
Fixes "was unable to be GC'd" when deleting tanks.
This commit is contained in:
@@ -67,10 +67,10 @@ var/list/global/tank_gauge_cache = list()
|
||||
return
|
||||
|
||||
/obj/item/weapon/tank/Destroy()
|
||||
qdel(air_contents)
|
||||
qdel_null(air_contents)
|
||||
|
||||
processing_objects.Remove(src)
|
||||
qdel(src.proxyassembly)
|
||||
qdel_null(src.proxyassembly)
|
||||
|
||||
if(istype(loc, /obj/item/device/transfer_valve))
|
||||
var/obj/item/device/transfer_valve/TTV = loc
|
||||
@@ -609,6 +609,10 @@ var/list/global/tank_gauge_cache = list()
|
||||
/obj/item/device/tankassemblyproxy/receive_signal() //This is mainly called by the sensor through sense() to the holder, and from the holder to here.
|
||||
tank.ignite() //boom (or not boom if you made shijwtty mix)
|
||||
|
||||
/obj/item/device/tankassemblyproxy/Destroy()
|
||||
. = ..()
|
||||
tank = null
|
||||
assembly = null
|
||||
|
||||
/obj/item/weapon/tank/proc/assemble_bomb(W,user) //Bomb assembly proc. This turns assembly+tank into a bomb
|
||||
var/obj/item/device/assembly_holder/S = W
|
||||
|
||||
Reference in New Issue
Block a user