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 --- .../kekztech/common/tileentities/MTELapotronicSuperCapacitor.java | 6 ++---- src/main/java/kekztech/util/Util.java | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src/main/java/kekztech') diff --git a/src/main/java/kekztech/common/tileentities/MTELapotronicSuperCapacitor.java b/src/main/java/kekztech/common/tileentities/MTELapotronicSuperCapacitor.java index e6260bc7af..eed5b32820 100644 --- a/src/main/java/kekztech/common/tileentities/MTELapotronicSuperCapacitor.java +++ b/src/main/java/kekztech/common/tileentities/MTELapotronicSuperCapacitor.java @@ -577,7 +577,7 @@ public class MTELapotronicSuperCapacitor extends MTEEnhancedMultiBlockBase 0 || mDynamoTunnelsTT.size() > 0) return false; + if (!mEnergyTunnelsTT.isEmpty() || !mDynamoTunnelsTT.isEmpty()) return false; } // Check if enough (more than 50%) non-empty caps @@ -854,11 +854,9 @@ public class MTELapotronicSuperCapacitor extends MTEEnhancedMultiBlockBase stacksList) { - if (stacksList.size() == 0) { + if (stacksList.isEmpty()) { return null; } @@ -55,7 +55,7 @@ public class Util { } public static FluidStack[] toFluidStackArray(List stacksList) { - if (stacksList.size() == 0) { + if (stacksList.isEmpty()) { return null; } -- cgit