From fce93434b66b1777912bf289747dfd7e94764116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=85=E5=A4=A9=E4=BD=91?= <52530814+MeiTianyou@users.noreply.github.com> Date: Sat, 4 May 2024 17:38:22 +0800 Subject: [PATCH] why return in middle of loop? ? ? (#254) --- .../java/goodgenerator/blocks/tileEntity/EssentiaHatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/goodgenerator/blocks/tileEntity/EssentiaHatch.java b/src/main/java/goodgenerator/blocks/tileEntity/EssentiaHatch.java index 24c827e7..563029aa 100644 --- a/src/main/java/goodgenerator/blocks/tileEntity/EssentiaHatch.java +++ b/src/main/java/goodgenerator/blocks/tileEntity/EssentiaHatch.java @@ -99,7 +99,7 @@ public void fillfrompipe() { if (te[i] != null) { IEssentiaTransport pipe = (IEssentiaTransport) te[i]; if (!pipe.canOutputTo(ForgeDirection.VALID_DIRECTIONS[i])) { - return; + continue; } if ((pipe.getEssentiaType(ForgeDirection.VALID_DIRECTIONS[i].getOpposite()) != null) && (pipe.getSuctionAmount(ForgeDirection.VALID_DIRECTIONS[i])