Fixes surgical trays passing through tables (#15330)

* Fixes surgical trays passing through tables

* use typeless
This commit is contained in:
dearmochi
2021-02-21 21:31:47 +00:00
committed by GitHub
parent 7bfc68afa6
commit 8941bc7699
2 changed files with 21 additions and 7 deletions
+1 -1
View File
@@ -123,7 +123,7 @@
return 1
if(mover.throwing)
return 1
if(locate(/obj/structure/table) in get_turf(mover))
if(length(get_atoms_of_type(get_turf(mover), /obj/structure/table) - mover))
return 1
if(flipped)
if(get_dir(loc, target) == dir)