Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Mar 19, 2024
1 parent d923aac commit f0dbaa8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

public class MetaTileEntityFluidHatch extends MetaTileEntityMultiblockNotifiablePart
implements IMultiblockAbilityPart<IFluidTank>, IControllable,
IGhostSlotConfigurable {
IGhostSlotConfigurable {

private static final int INITIAL_INVENTORY_SIZE = 8000;

Expand Down Expand Up @@ -256,7 +256,7 @@ public MultiblockAbility<IFluidTank> getAbility() {
@Override
public @NotNull List<MultiblockAbility<?>> getAbilities() {
return isExportHatch ?
Collections.singletonList(MultiblockAbility.EXPORT_FLUIDS):
Collections.singletonList(MultiblockAbility.EXPORT_FLUIDS) :
Arrays.asList(MultiblockAbility.IMPORT_FLUIDS, MultiblockAbility.IMPORT_ITEMS);
}

Expand Down Expand Up @@ -321,8 +321,10 @@ public ModularUI.Builder createTankUI(IFluidTank fluidTank, String title, Entity
.setBackgroundTexture(GuiTextures.SLOT, GuiTextures.INT_CIRCUIT_OVERLAY);
builder.widget(circuitSlot.setConsumer(slotWidget -> {
String configString;
if (circuitInventory == null || circuitInventory.getCircuitValue() == GhostCircuitItemStackHandler.NO_CONFIG) {
configString = new TextComponentTranslation("gregtech.gui.configurator_slot.no_value").getFormattedText();
if (circuitInventory == null ||
circuitInventory.getCircuitValue() == GhostCircuitItemStackHandler.NO_CONFIG) {
configString = new TextComponentTranslation("gregtech.gui.configurator_slot.no_value")
.getFormattedText();
} else {
configString = String.valueOf(circuitInventory.getCircuitValue());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Collections;
import java.util.List;

public class MetaTileEntityMultiFluidHatch extends MetaTileEntityMultiblockNotifiablePart
Expand Down

0 comments on commit f0dbaa8

Please sign in to comment.