From c784de9540c249d3dfdd55a03b2f3ad4f4e1c269 Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Mon, 22 Jul 2024 05:59:35 +0100 Subject: [PATCH] Holopads no longer suck in unsuspecting people when crowbared (#85139) ## About The Pull Request Closes #80183 This is a generic fix for future cases instead of a holopad-specific one, but for now it only affects holopads. Non-dense machinery no longer sucks people in when closed. ## Changelog :cl: fix: Holopads no longer suck in unsuspecting people when crowbared /:cl: --- code/game/machinery/_machinery.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index 30a252de385..423a2a16b55 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -413,6 +413,10 @@ /obj/machinery/proc/close_machine(atom/movable/target, density_to_set = TRUE) state_open = FALSE set_density(density_to_set) + if (!density) + update_appearance() + return + if(!target) for(var/atom in loc) if (!(can_be_occupant(atom)))