Skip to content

Commit

Permalink
Fix newly built slime pens allowing ooze to leak (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Jul 3, 2024
1 parent 415c951 commit 4cf76dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions monkestation/code/modules/slimecore/corral/corral_data.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand All @@ -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)
Expand Down

0 comments on commit 4cf76dc

Please sign in to comment.