From 6444a5fa3fc1ef6f55374b72b5875ca0918e010c Mon Sep 17 00:00:00 2001 From: dovydas12345 <37041561+dovydas12345@users.noreply.github.com> Date: Fri, 9 Nov 2018 23:00:17 +0200 Subject: [PATCH] The correct check --- code/modules/hydroponics/grown.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 88ac251b91d..50cbb1e7e75 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -60,7 +60,7 @@ /obj/item/reagent_containers/food/snacks/grown/attackby(obj/item/O, mob/user, params) ..() - if(slices_num && slice_path) + if(slices_num > 0 && slice_path) var/inaccurate = TRUE if(O.sharp) if(istype(O, /obj/item/kitchen/knife) || istype(O, /obj/item/scalpel))