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.
This commit is contained in:
Verkister
2023-04-08 13:20:06 +03:00
committed by GitHub
parent a0a1350b74
commit 61ff2abe6d
@@ -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 ..()
return ..()