From 1fc8b9dd4be518dc49fdf521dd63e28b4bc028d2 Mon Sep 17 00:00:00 2001 From: ariaworld <143797359+ariaworld@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:29:10 +0100 Subject: [PATCH] Fix return statements --- code/modules/food_and_drinks/drinks/drinks.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/food_and_drinks/drinks/drinks.dm b/code/modules/food_and_drinks/drinks/drinks.dm index f411db1d5c25..1efff6714abe 100644 --- a/code/modules/food_and_drinks/drinks/drinks.dm +++ b/code/modules/food_and_drinks/drinks/drinks.dm @@ -23,14 +23,14 @@ /obj/item/reagent_containers/food/drinks/attack(mob/living/M, mob/user, def_zone) if(!reagents || !reagents.total_volume) to_chat(user, "[src] is empty!") - return FALSE + return if(!canconsume(M, user)) - return FALSE + return if (!is_drainable()) to_chat(user, "[src]'s lid hasn't been opened!") - return FALSE + return var/gulp_amount = gulp_size if(M == user)