Skip to content

Commit

Permalink
spotless 2:lets:
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC committed Dec 20, 2023
1 parent 0688b6e commit c89bddb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public abstract class MultiblockControllerBase extends MetaTileEntity implements
private boolean structureFormed;
private int structureTier = 0;


protected EnumFacing upwardsFacing = EnumFacing.NORTH;
protected boolean isFlipped;

Expand Down Expand Up @@ -402,7 +401,7 @@ public int getStructureTier() {
* sets the tier of the multi clamped between 1 and maxTier()
*/
public void setStructureTier(int structureTier) {
if(this.structureTier != structureTier) {
if (this.structureTier != structureTier) {
this.structureTier = MathHelper.clamp(structureTier, 0, getMaxStructureTier());
if (getWorld() != null && !getWorld().isRemote) {
reinitializeStructurePattern();
Expand All @@ -411,8 +410,8 @@ public void setStructureTier(int structureTier) {
}

/**
* Override if you are using the multiblock tiered system
* max tier of 0 means tiering is disabled
* Override if you are using the multiblock tiered system
* max tier of 0 means tiering is disabled
*/
public int getMaxStructureTier() {
return 0;
Expand Down Expand Up @@ -463,7 +462,6 @@ public void receiveInitialSyncData(PacketBuffer buf) {
this.upwardsFacing = EnumFacing.VALUES[buf.readByte()];
this.isFlipped = buf.readBoolean();
this.structureTier = buf.readInt();

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ public Builder addFuelNeededLine(String fuelName, int previousRecipeDuration) {
}

public Builder addStructureTierLine(int tier) {
textList.add(TextComponentUtil.translationWithColor(TextFormatting.GRAY, "gregtech.multiblock.structure_tier", tier));
textList.add(TextComponentUtil.translationWithColor(TextFormatting.GRAY,
"gregtech.multiblock.structure_tier", tier));
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ public static void renderMultiBlockPreview(MultiblockControllerBase controller,
mbpEndTime = System.currentTimeMillis() + durTimeMillis;
opList = GLAllocation.generateDisplayLists(1); // allocate op list
GlStateManager.glNewList(opList, GL11.GL_COMPILE);
if(tier != controller.getTier()) {
if (tier != controller.getTier()) {
tier = controller.getTier();
controller.reinitializeStructurePattern();
}
List<MultiblockShapeInfo> shapes = controller.getMatchingShapes();
if (!shapes.isEmpty()) {
renderControllerInList(controller, shapes.get(0), layer);
renderControllerInList(controller, shapes.get(0), layer);
}
GlStateManager.glEndList();
}
Expand Down

0 comments on commit c89bddb

Please sign in to comment.