Skip to content

Commit

Permalink
fix comments, reduce empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
MCTBL committed Sep 16, 2024
1 parent e84660b commit 4c7573f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,13 @@ protected void actionPerformed(final GuiButton btn) {
this.isConsume = !this.isConsume;
}
}
if (oldConsume != this.isConsume) {

if (oldConsume != this.isConsume) {
try {
NetworkHandler.instance.sendToServer(new PacketNetworkStatusSelected(this.isConsume));
} catch (IOException ignored) {
// XD
}

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,25 +209,24 @@ public void detectAndSendChanges() {
case FLUID -> sg.getFluidCells();
case ESSENTIA -> sg.getEssentiaCells();
};
for (Entry<ItemStack, Integer> set : cells.entrySet()) {

for (Entry<ItemStack, Integer> set : cells.entrySet()) {
final IAEItemStack ais = AEItemStack.create(set.getKey());
ais.setStackSize(set.getValue());
list.add(ais);

}
}

for (final IAEItemStack ais : list) {
piu.appendItem(ais);
}

// Send packet
for (final Object c : this.crafters) {
if (c instanceof EntityPlayer) {
NetworkHandler.instance.sendTo(piu, (EntityPlayerMP) c);
}
}

} catch (final IOException e) {
// :P
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/appeng/core/AEConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public AEConfig(final File configFile) {
this.get(
"automation",
"networkBytesUpdateFrequency",
this.networkBytesUpdateFrequency).comment = "#Network bytes information update Frequency(s) default:2.0";
this.networkBytesUpdateFrequency).comment = "#Network bytes information update Frequency(s) default:1.0";

this.wirelessTerminalBattery = this.get("battery", "wirelessTerminal", this.wirelessTerminalBattery)
.getInt(this.wirelessTerminalBattery);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public PacketNetworkStatusSelected(final boolean isConsume) throws IOException {
this.isConsume = isConsume;

final ByteBuf data = Unpooled.buffer();

data.writeInt(this.getPacketID());
data.writeBoolean(this.isConsume);

Expand Down

0 comments on commit 4c7573f

Please sign in to comment.