From 0b36b64ed8a190d1e04464420db57f6dd61eb4dd Mon Sep 17 00:00:00 2001 From: Adrer Date: Sat, 16 Sep 2023 00:56:57 +0200 Subject: [PATCH] [s] Disposals now checks for density before expelling (#22274) * Disposals now checks for density before expelling * Update code/modules/recycling/disposal.dm Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> --------- Co-authored-by: Adrer Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> --- code/modules/recycling/disposal.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 9f3e8f28bfe..fabd294c99e 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -796,7 +796,10 @@ H.forceMove(P) else // if wasn't a pipe, then set loc to turf - H.forceMove(T) + if(is_blocked_turf(T)) + H.forceMove(loc) + else + H.forceMove(T) return null return P