From 61ff2abe6d8cdecc8696ddce016b43c48aa1ba22 Mon Sep 17 00:00:00 2001 From: Verkister Date: Sat, 8 Apr 2023 13:20:06 +0300 Subject: [PATCH] Fixes a grinder bug with "anchored" trash contents Not sure how many other random items might have "anchored" items inside them, but bullet casings are definitely one of those, containing anchored projectiles that would linger on the tile, ready to magdump themselves into the next unlucky person to step in. --- modular_chomp/code/modules/recycling/v_garbosystem.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modular_chomp/code/modules/recycling/v_garbosystem.dm b/modular_chomp/code/modules/recycling/v_garbosystem.dm index f76471e5d3..f3c92c868b 100644 --- a/modular_chomp/code/modules/recycling/v_garbosystem.dm +++ b/modular_chomp/code/modules/recycling/v_garbosystem.dm @@ -77,6 +77,8 @@ items_taken++ break for(var/atom/movable/C in A.contents) + if(C.anchored) + C.anchored = FALSE C.forceMove(loc) if(isitem(A)) A.SpinAnimation(5,3) @@ -115,4 +117,4 @@ return else to_chat(user, "Unable to empty filter while the machine is running.") - return ..() \ No newline at end of file + return ..()