Skip to content

Commit

Permalink
[s] Disposals now checks for density before expelling (#22274)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Sep 15, 2023
1 parent 6ae2cce commit 0b36b64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/recycling/disposal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b36b64

Please sign in to comment.