Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit e7f10f6

Browse files
eeee
1 parent c7fc351 commit e7f10f6

File tree

1 file changed

+5
-1
lines changed
  • code/modules/atmospherics/machinery/components/unary_devices

1 file changed

+5
-1
lines changed

code/modules/atmospherics/machinery/components/unary_devices/tank.dm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@
6363
for(var/gas_id in contents.get_gases())
6464
var/gas_removed = contents.get_moles(gas_id)
6565
contents.adjust_moles(gas_id, -gas_removed)
66-
pipe.air.adjust_moles(gas_id, gas_removed)
66+
if(pipe)
67+
pipe.air.adjust_moles(gas_id, gas_removed)
68+
else
69+
var/turf/T = get_turf(src)
70+
T.assume_air(contents)
6771

6872
/obj/machinery/atmospherics/components/unary/tank/default_change_direction_wrench(mob/user, obj/item/I)
6973
if(!..())

0 commit comments

Comments
 (0)