Makes it work properly with non-mobs

This commit is contained in:
Heroman
2019-07-11 16:38:15 +10:00
parent 24f8780ad2
commit 66ba1a5ccc
+8 -5
View File
@@ -67,8 +67,11 @@
can_atmos_pass = ATMOS_PASS_NO
/obj/structure/plasticflaps/mining/CanPass(atom/A, turf/T)
for(var/mob_type in mobs_can_pass)
if(istype(A, mob_type))
return ..()
return 0
var/mob/living/M = A
if(istype(M))
for(var/mob_type in mobs_can_pass)
if(istype(A, mob_type))
return ..()
return 0
else
return ..()