From 50b7e883f3d4dd5a5566a9fcf45880a47c0a65dc Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 13 Jul 2024 13:02:31 +0100 Subject: [PATCH] Allow cooking time of 0 for recipes that are not cooked --- blocks/ORB/Common.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/ORB/Common.pm b/blocks/ORB/Common.pm index 0db8caf..b83d606 100644 --- a/blocks/ORB/Common.pm +++ b/blocks/ORB/Common.pm @@ -426,7 +426,7 @@ sub _validate_recipe { ($args -> {"cooksecs"}, $error) = $self -> validate_numeric("cooksecs", { required => 1, default => 0, intonly => 1, - min => 1, + min => 0, nicename => "{L_RECIPE_COOKTIME}" }); $errors .= $self -> {"template"} -> load_template("error/error_item.tem", { "%(error)s" => $error }) @@ -511,4 +511,4 @@ sub _validate_recipe { } -1; \ No newline at end of file +1;