[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 <adrermail@gmail.com>
Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
Adrer
2023-09-16 00:56:57 +02:00
committed by GitHub
parent 6ae2cce8c6
commit 0b36b64ed8
+4 -1
View File
@@ -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