From 4c3ab8fb6ce82d4416ebeb5aa36bdafe34367b6f Mon Sep 17 00:00:00 2001 From: JJRcop Date: Wed, 13 Sep 2017 13:10:31 -0400 Subject: [PATCH] Fixes bees attacking apiaries --- code/modules/mob/living/simple_animal/hostile/bees.dm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/bees.dm b/code/modules/mob/living/simple_animal/hostile/bees.dm index dea21157c63..3a523454d21 100644 --- a/code/modules/mob/living/simple_animal/hostile/bees.dm +++ b/code/modules/mob/living/simple_animal/hostile/bees.dm @@ -128,11 +128,12 @@ if(istype(target, /obj/machinery/hydroponics)) var/obj/machinery/hydroponics/Hydro = target pollinate(Hydro) - else if(target == beehome) - var/obj/structure/beebox/BB = target - loc = BB - target = null - wanted_objects -= typecacheof(/obj/structure/beebox) //so we don't attack beeboxes when not going home + else if(istype(target, /obj/structure/beebox)) + if(target == beehome) + var/obj/structure/beebox/BB = target + loc = BB + target = null + wanted_objects -= typecacheof(/obj/structure/beebox) //so we don't attack beeboxes when not going home return //no don't attack the goddamm box else . = ..()