From 83344732eb6678a507042997e7b3008d1c935486 Mon Sep 17 00:00:00 2001 From: Blood-Asp Date: Mon, 11 Apr 2016 21:50:01 +0200 Subject: [PATCH] Cleanup --- .../multi/GT_MetaTileEntity_AssemblyLine.java | 34 +++---------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java index bead2e19..bdfdce87 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_AssemblyLine.java @@ -109,18 +109,11 @@ public class GT_MetaTileEntity_AssemblyLine if (aBaseMetaTileEntity.getBlockOffset(xDir*2, -2, i) != GregTech_API.sBlockCasings2) {return false;} if (aBaseMetaTileEntity.getMetaIDOffset(xDir*2, -2, i) != 0) {return false;} } - - - tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, -2, i); if (!addInputToMachineList(tTileEntity, 16)){ - if (!addOutputToMachineList(tTileEntity, 16)){ - System.out.println("finish3");return false; - }else{if(r>0){System.out.println("finish");return true;}else{System.out.println("finish2");return false;}} + if (!addOutputToMachineList(tTileEntity, 16)){;return false; + }else{if(r>0){return true;}else{return false;}} } - System.out.println("success: "+i); - - } }else{ for(int r = 0; r <= 16; r++){ @@ -150,30 +143,13 @@ public class GT_MetaTileEntity_AssemblyLine if (aBaseMetaTileEntity.getBlockOffset(i, -2, zDir*2) != GregTech_API.sBlockCasings2) {return false;} if (aBaseMetaTileEntity.getMetaIDOffset(i, -2, zDir*2) != 0) {return false;} } - - - tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(i, -2, zDir); if (!addInputToMachineList(tTileEntity, 16)){ if (!addOutputToMachineList(tTileEntity, 16)){ - System.out.println("finish3");return false; - }else{if(r>0){System.out.println("finish");return true;}else{System.out.println("finish2");return false;}} + }else{if(r>0){return true;}else{return false;}} } - System.out.println("success: "+i); - - - } - - } - - - - - - - - - + } + } return false; }