aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/tectech/thing/metaTileEntity/multi/MTEEyeOfHarmony.java
diff options
context:
space:
mode:
authorAlexdoru <57050655+Alexdoru@users.noreply.github.com>2024-10-02 07:31:08 +0200
committerGitHub <noreply@github.com>2024-10-02 05:31:08 +0000
commit3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3 (patch)
tree107d9d2442891990ef1cdef1d8bb2df6bb96952a /src/main/java/tectech/thing/metaTileEntity/multi/MTEEyeOfHarmony.java
parentbfc7b2b07f72d0903a70791ff96f9c837ddd5ff0 (diff)
downloadGT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.tar.gz
GT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.tar.bz2
GT5-Unofficial-3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3.zip
Cleanup the codebase (#3311)
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/tectech/thing/metaTileEntity/multi/MTEEyeOfHarmony.java')
-rw-r--r--src/main/java/tectech/thing/metaTileEntity/multi/MTEEyeOfHarmony.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main/java/tectech/thing/metaTileEntity/multi/MTEEyeOfHarmony.java b/src/main/java/tectech/thing/metaTileEntity/multi/MTEEyeOfHarmony.java
index 238116cdc6..21d175c837 100644
--- a/src/main/java/tectech/thing/metaTileEntity/multi/MTEEyeOfHarmony.java
+++ b/src/main/java/tectech/thing/metaTileEntity/multi/MTEEyeOfHarmony.java
@@ -913,21 +913,17 @@ public class MTEEyeOfHarmony extends TTMultiblockBase implements IConstructable,
// Make sure there are no energy hatches.
{
- if (mEnergyHatches.size() > 0) {
+ if (!mEnergyHatches.isEmpty()) {
return false;
}
- if (mExoticEnergyHatches.size() > 0) {
+ if (!mExoticEnergyHatches.isEmpty()) {
return false;
}
}
// Make sure there are 2 input hatches.
- if (mInputHatches.size() != 2) {
- return false;
- }
-
- return true;
+ return mInputHatches.size() == 2;
}
private boolean animationsEnabled = true;