Skip to content

Commit

Permalink
[s] Disposals now checks for density before expelling (ParadiseSS13#2…
Browse files Browse the repository at this point in the history
…2274)

* Disposals now checks for density before expelling

* Update code/modules/recycling/disposal.dm

Co-authored-by: SteelSlayer <[email protected]>

---------

Co-authored-by: Adrer <[email protected]>
Co-authored-by: SteelSlayer <[email protected]>
  • Loading branch information
3 people committed 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.