Skip to content

Commit

Permalink
Test structure density instead (Why is this check normally also teste…
Browse files Browse the repository at this point in the history
…d against ON_BORDER?)
  • Loading branch information
Drulikar committed Jun 30, 2023
1 parent 9fd4faa commit e8097b4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
to_chat(xeno, SPAN_WARNING("These weeds are too strong to plant a node on!"))
return

var/obj/structure/window_frame/window = locate() in turf
if(window && window.density)
to_chat(xeno, SPAN_WARNING("You can't do that here."))
return
for(var/obj/structure/struct in turf)
if(struct.density && !(struct.flags_atom & ON_BORDER)) // Not sure exactly if we need to test against ON_BORDER though
to_chat(xeno, SPAN_WARNING("You can't do that here."))
return

var/area/area = get_area(turf)
if(isnull(area) || !(area.is_resin_allowed))
Expand Down

0 comments on commit e8097b4

Please sign in to comment.