mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-22 04:36:53 +01:00
Makes it work properly with non-mobs
This commit is contained in:
@@ -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 ..()
|
||||
Reference in New Issue
Block a user