From c2ffffeb09ca8ee0ea9166ecf534dc6d812c3cc2 Mon Sep 17 00:00:00 2001 From: Verkister Date: Sun, 8 Nov 2020 09:09:51 +0200 Subject: [PATCH] Fix for mob spawners: take 2 Fixes away map mob spawners respawning their mobs when there's a player mob in view. --- maps/tether/submaps/_tether_submaps.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maps/tether/submaps/_tether_submaps.dm b/maps/tether/submaps/_tether_submaps.dm index 013484d276..21d9366197 100644 --- a/maps/tether/submaps/_tether_submaps.dm +++ b/maps/tether/submaps/_tether_submaps.dm @@ -456,8 +456,9 @@ if(my_mob && my_mob.stat != DEAD) return //No need - if(LAZYLEN(loc.human_mobs(world.view))) - return //I'll wait. + for(var/mob/living/L in view(src,world.view)) + if(L.client) + return //I'll wait. if(prob(prob_spawn)) prob_spawn -= prob_fall