From 9db8d592d714a4cd93f7ca8b7b950050678f70ce Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 25 Apr 2022 00:16:57 +0200 Subject: [PATCH] boolean fix --- bootstrap/ISBPL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/ISBPL.java b/bootstrap/ISBPL.java index 96c3ef4..8095163 100644 --- a/bootstrap/ISBPL.java +++ b/bootstrap/ISBPL.java @@ -1490,7 +1490,7 @@ class ISBPLObject { } public boolean isTruthy() { - return object != null && object != Integer.valueOf(0); + return object != null && object != Integer.valueOf(0) && object != Boolean.valueOf(false); } // This has heavy optimizations, please do not change unless necessary