RFD-P Storage Use Fix (#8523)

This commit is contained in:
Geeves
2020-03-27 12:47:27 +01:00
committed by GitHub
parent 89b7d9782f
commit 5a8691c5fa
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -476,7 +476,7 @@ RFD Piping-Class
to_chat(user, SPAN_NOTICE("Selected pipe: <b>[pipe_examine]</b>"))
/obj/item/rfd/piping/afterattack(atom/A, mob/user, proximity)
if(!proximity)
if(!proximity || !isturf(A))
return
if(istype(get_area(A), /area/shuttle) || istype(get_area(A), /turf/space))
to_chat(user, SPAN_WARNING("You can't lay pipe here!"))