From 3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3 Mon Sep 17 00:00:00 2001 From: Alexdoru <57050655+Alexdoru@users.noreply.github.com> Date: Wed, 2 Oct 2024 07:31:08 +0200 Subject: Cleanup the codebase (#3311) Co-authored-by: boubou19 --- .../java/tectech/thing/metaTileEntity/hatch/MTEHatchParamText.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchParamText.java') diff --git a/src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchParamText.java b/src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchParamText.java index a9c2ef40cd..bb9be3aa03 100644 --- a/src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchParamText.java +++ b/src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchParamText.java @@ -258,8 +258,8 @@ public class MTEHatchParamText extends MTEHatchParam { parse(str); return str; } catch (Exception e) { - return widget.getLastText() - .size() > 0 ? widget.getLastText() + return !widget.getLastText() + .isEmpty() ? widget.getLastText() .get(0) : ""; } }) -- cgit