From 4cf76dcdf31911c5232614a35ed7da40d0186a19 Mon Sep 17 00:00:00 2001 From: Lucy Date: Wed, 3 Jul 2024 02:01:37 -0400 Subject: [PATCH] Fix newly built slime pens allowing ooze to leak (#2507) --- monkestation/code/modules/slimecore/corral/corral_data.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monkestation/code/modules/slimecore/corral/corral_data.dm b/monkestation/code/modules/slimecore/corral/corral_data.dm index 41cd54669a4d..8b22c9acb9d4 100644 --- a/monkestation/code/modules/slimecore/corral/corral_data.dm +++ b/monkestation/code/modules/slimecore/corral/corral_data.dm @@ -14,6 +14,7 @@ /datum/corral_data/proc/setup_pen() for(var/turf/turf as anything in corral_turfs) + turf.air_update_turf(update = TRUE, remove = FALSE) RegisterSignal(turf, COMSIG_ATOM_ENTERED, PROC_REF(check_entered)) RegisterSignal(turf, COMSIG_ATOM_EXITED, PROC_REF(check_exited)) @@ -30,6 +31,9 @@ /datum/corral_data/Destroy(force, ...) QDEL_LIST(corral_connectors) + for(var/turf/turf as anything in corral_turfs) + if(!QDELETED(turf)) + turf.air_update_turf(update = TRUE, remove = FALSE) corral_turfs = null for(var/obj/machinery/corral_corner/corner as anything in corral_corners)