Skip to content

Commit 199a454

Browse files
SquidDevSirEndii
authored andcommitted
Hello checkstyle my old friend
1 parent c4e06ee commit 199a454

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/turtles/TurtleChatBoxUpgrade.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public void update(@NotNull ITurtleAccess turtle, @NotNull TurtleSide side) {
3636
if (turtle.getLevel().isClientSide)
3737
return;
3838

39-
if (turtle.getPeripheral(side) instanceof ChatBoxPeripheral chatBox) chatBox.update();
39+
if (turtle.getPeripheral(side) instanceof ChatBoxPeripheral chatBox) {
40+
chatBox.update();
41+
}
4042
}
4143
}

src/main/java/de/srendi/advancedperipherals/common/blocks/base/PeripheralBlockEntity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.jetbrains.annotations.Nullable;
3333

3434
import java.util.Collections;
35-
import java.util.List;
3635

3736
public abstract class PeripheralBlockEntity<T extends BasePeripheral<?>> extends BaseContainerBlockEntity implements WorldlyContainer, MenuProvider, IPeripheralTileEntity {
3837
// TODO: move inventory logic to another tile entity!

src/main/java/de/srendi/advancedperipherals/common/blocks/blockentities/ChatBoxEntity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ protected ChatBoxPeripheral createPeripheral() {
2323

2424
@Override
2525
public <T extends BlockEntity> void handleTick(Level level, BlockState state, BlockEntityType<T> type) {
26-
if (peripheral != null) peripheral.update();
26+
if (peripheral != null) {
27+
peripheral.update();
28+
}
2729
}
2830
}

0 commit comments

Comments
 (0)