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
🆑
fix: Holopads no longer suck in unsuspecting people when crowbared
/🆑
This commit is contained in:
SmArtKar
2024-07-21 21:59:35 -07:00
committed by GitHub
parent 256f9db4bf
commit c784de9540
+4
View File
@@ -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)))