From e98bc1e3da07fa47cfff74b71d4d3faed489d7a2 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 13 Feb 2026 01:37:09 -0800 Subject: fix: Decompilation artifact repairs for Java 11 compilation - Duplicate variable declarations in switch-case branches (AvMenu, ServerInputStream, netData, AnimatedAction) - Ambiguous null constructor calls requiring explicit casts (ExpireDialog, PosableShape) - Deprecated getPeer() replaced with isDisplayable() (PolledDialog) - Decompiler $assertionsDisabled artifact removed (BackgroundLoader) - Missing null-safety on unboxing (BooleanFieldEditorDialog) - Raw generic types parameterized (ShallowEnumeration) - Raw Enumeration cast added (Shape) --- NET/worlds/scape/BooleanFieldEditorDialog.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'NET/worlds/scape/BooleanFieldEditorDialog.java') diff --git a/NET/worlds/scape/BooleanFieldEditorDialog.java b/NET/worlds/scape/BooleanFieldEditorDialog.java index ea661ca..ad0f6c9 100644 --- a/NET/worlds/scape/BooleanFieldEditorDialog.java +++ b/NET/worlds/scape/BooleanFieldEditorDialog.java @@ -11,7 +11,9 @@ class BooleanFieldEditorDialog extends CheckboxEditorDialog { @Override protected int getValue() { - return this.property.get() ? 1 : 0; + Boolean value = (Boolean) this.property.get(); + + return (value != null && value) ? 1 : 0; } @Override -- cgit v1.2.3