Skip to content

Commit

Permalink
Fixes shatter element dropping stuff on blocked turfs (#5630)
Browse files Browse the repository at this point in the history
## About The Pull Request
ports tgstation/tgstation#88739
Makes plates unable to break into blocked turfs
fixes #5628

## Why It's Good For The Game
Fixes bug which allows clipping through walls you shouldn't

## Changelog

:cl:
fix: plates breaking inside of walls
/:cl:
  • Loading branch information
Shoddd authored Feb 25, 2025
1 parent 9877769 commit 08df174
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/food_and_drinks/plate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@
. = ..()
if(.)
return
var/turf/scatter_turf = get_turf(hit_atom)
if(!hit_atom.CanPass(src, get_dir(src, hit_atom))) //Object is too dense to fall apart on
scatter_turf = get_turf(src)
var/generator/scatter_gen = generator(GEN_CIRCLE, 0, 48, NORMAL_RAND)
var/scatter_turf = get_turf(hit_atom)

for(var/obj/item/scattered_item as anything in contents)
ItemRemovedFromPlate(scattered_item)
Expand Down

0 comments on commit 08df174

Please sign in to comment.