From 90b3fed5dfaa1bb0f37192bf0eeea3bf830c6e45 Mon Sep 17 00:00:00 2001 From: tkdrg Date: Sun, 23 Nov 2014 23:50:48 -0300 Subject: [PATCH] Fixes hydroponics harvesting in diagonals --- code/modules/hydroponics/hydroponics.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm index 605f2ee5afe..cdcde2708a6 100644 --- a/code/modules/hydroponics/hydroponics.dm +++ b/code/modules/hydroponics/hydroponics.dm @@ -738,8 +738,6 @@ obj/machinery/hydroponics/attackby(var/obj/item/O as obj, var/mob/user as mob) if(istype(user, /mob/living/silicon)) //How does AI know what plant is? return if(harvest) - if(!user in range(1,src)) - return myseed.harvest() else if(dead) planted = 0 @@ -772,7 +770,7 @@ obj/machinery/hydroponics/attackby(var/obj/item/O as obj, var/mob/user as mob) var/obj/machinery/hydroponics/parent = loc //for ease of access var/t_amount = 0 var/list/result = list() - var/output_loc = Adjacent(user) ? user.loc : parent.loc //needed for TK + var/output_loc = parent.Adjacent(user) ? user.loc : parent.loc //needed for TK while(t_amount < getYield()) var/obj/item/weapon/reagent_containers/food/snacks/grown/t_prod = new product(output_loc, potency)