From 30b192cc2bc5bc332da3982912336105fbbdff7b Mon Sep 17 00:00:00 2001 From: Cerebulon Date: Tue, 10 Aug 2021 23:50:57 +0100 Subject: [PATCH] Farmbot can be turned off, not just on --- code/modules/mob/living/bot/farmbot.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/living/bot/farmbot.dm b/code/modules/mob/living/bot/farmbot.dm index 939ac35cfc..d35ada73d8 100644 --- a/code/modules/mob/living/bot/farmbot.dm +++ b/code/modules/mob/living/bot/farmbot.dm @@ -60,7 +60,7 @@ data["replaces_nutriment"] = replaces_nutriment data["collects_produce"] = collects_produce data["removes_dead"] = removes_dead - + return data @@ -83,22 +83,22 @@ /mob/living/bot/farmbot/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state) if(..()) return TRUE - + add_fingerprint(usr) switch(action) if("power") - if(!access_scanner.allowed(src)) + if(!access_scanner.allowed(usr)) return FALSE if(on) turn_off() else turn_on() . = TRUE - + if(locked) return TRUE - + switch(action) if("water") waters_trays = !waters_trays