From b76f2753922dd1b80c674a5459acddf24460c1b2 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Wed, 16 Mar 2022 13:35:09 +0100 Subject: [PATCH] fix try catch --- bootstrap/ISBPL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/ISBPL.java b/bootstrap/ISBPL.java index 30fc0af..f36511d 100644 --- a/bootstrap/ISBPL.java +++ b/bootstrap/ISBPL.java @@ -102,7 +102,7 @@ public class ISBPL { try { block.call(stack); } catch (ISBPLError error) { - if (Arrays.asList(allowed).contains(error.type) || allowed.length != 1 && allowed[0].equals("all")) { + if (Arrays.asList(allowed).contains(error.type) || allowed.length == 1 && allowed[0].equals("all")) { stack.push(toISBPLString(error.message)); stack.push(toISBPLString(error.type)); catcher.call(stack);