Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
boubou19 committed Sep 8, 2023
1 parent 7d27600 commit 4a7eca7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ public void readMultiTileNBT(NBTTagCompound nbt) {
}
for (int i = 0; i < MAX_PROCESSES; i++) {

if (processWhiteLists == null){
if (processWhiteLists == null) {
continue;
}


final NBTTagCompound itemList = processWhiteLists.getCompoundTag("items" + i);
if (itemList != null) {
processWhitelistInventoryHandlers.get(i).deserializeNBT(itemList);
processWhitelistInventoryHandlers.get(i)
.deserializeNBT(itemList);
}
final NBTTagList fluidList = processWhiteLists.getTagList("fluids" + i, Constants.NBT.TAG_COMPOUND);

Expand All @@ -129,7 +129,7 @@ public void readMultiTileNBT(NBTTagCompound nbt) {
for (int j = 0; j < fluidList.tagCount(); j++) {
final NBTTagCompound fluid = fluidList.getCompoundTagAt(j);

if (fluid == null){
if (fluid == null) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ public IStructureDefinition<LaserEngraver> getStructureDefinition() {
ofMuTECasings(
FLUID_IN | ITEM_IN | FLUID_OUT | ITEM_OUT | ENERGY_IN,
GT_MultiTileCasing.BlackLaserEngraverCasing.getCasing()))
.addElement('C', ofMuTECasings(NOTHING, CLEANROOM_CASINGS, GT_MultiTileCasing.LaserEngraver.getCasing()))
.addElement(
'C',
ofMuTECasings(NOTHING, CLEANROOM_CASINGS, GT_MultiTileCasing.LaserEngraver.getCasing()))
.addElement('D', ofMuTECasings(NOTHING, WIRELESS_CASINGS, GT_MultiTileCasing.LaserEngraver.getCasing()))
.addElement('E', ofMuTECasings(NOTHING, MOTOR_CASINGS))
.addElement('F', GT_StructureUtility.ofFrame(Materials.Naquadah)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ public boolean checkMachine() {
if (!checkPiece(STRUCTURE_PIECE_BASE, buildState.getCurrentOffset())) return buildState.failBuilding();

buildState.addOffset(getMegaPositionOffset());
if (!checkPiece(STACKABLE_START, buildState.getCurrentOffset())){
if (!checkPiece(STACKABLE_START, buildState.getCurrentOffset())) {
return buildState.failBuilding();
}

buildState.addOffset(getStartingStackOffset());
for (int i = 0; i < getMaxStacks(); i++) {
if (!checkPiece(getStackableMiddle(i), buildState.getCurrentOffset())){
if (!checkPiece(getStackableMiddle(i), buildState.getCurrentOffset())) {
break;
}

Expand All @@ -193,7 +193,6 @@ public boolean checkMachine() {
return buildState.failBuilding();
}


calculateTier();
if (!calculateMucMultipliers()) {
return false;
Expand Down

0 comments on commit 4a7eca7

Please sign in to comment.