mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
Nonhuman things can now move through the barrier
This commit is contained in:
@@ -133,10 +133,16 @@
|
||||
|
||||
/obj/structure/holosign/barrier/medical/CanAllowThrough(atom/movable/mover, turf/target)
|
||||
. = ..()
|
||||
if(force_allaccess || issilicon(mover))
|
||||
if(force_allaccess)
|
||||
return TRUE
|
||||
if(istype(mover, /obj/vehicle/ridden))
|
||||
for(var/M in mover.buckled_mobs)
|
||||
if(ishuman(M))
|
||||
if(!CheckHuman(M))
|
||||
return FALSE
|
||||
if(ishuman(mover))
|
||||
return CheckHuman(mover)
|
||||
return TRUE
|
||||
|
||||
/obj/structure/holosign/barrier/medical/Bumped(atom/movable/AM)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user