From 4f25784545bcc50d72c747cc4d659a87ad1bfc94 Mon Sep 17 00:00:00 2001 From: Andrei Laiff Date: Thu, 26 Oct 2023 16:43:24 +0300 Subject: [PATCH] Code cleanup after review --- .../gui/implementations/GuiInterfaceTerminal.java | 5 ----- .../appeng/core/sync/packets/PacketCompressedNBT.java | 10 +--------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/main/java/appeng/client/gui/implementations/GuiInterfaceTerminal.java b/src/main/java/appeng/client/gui/implementations/GuiInterfaceTerminal.java index 5b979432c49..56eec5fe361 100644 --- a/src/main/java/appeng/client/gui/implementations/GuiInterfaceTerminal.java +++ b/src/main/java/appeng/client/gui/implementations/GuiInterfaceTerminal.java @@ -721,11 +721,6 @@ protected void keyTyped(final char character, final int key) { || searchFieldNames.textboxKeyTyped(character, key)) { return; } - // if (Character.isDigit(character) && character != '0') { - // // move hotbar to slot - // if (masterList.hoveredEntry != null && masterList.hoveredEntry.hoveredSlotIdx != -1) { - // } - // } super.keyTyped(character, key); } } diff --git a/src/main/java/appeng/core/sync/packets/PacketCompressedNBT.java b/src/main/java/appeng/core/sync/packets/PacketCompressedNBT.java index 7a59fddfd6f..b551814008b 100644 --- a/src/main/java/appeng/core/sync/packets/PacketCompressedNBT.java +++ b/src/main/java/appeng/core/sync/packets/PacketCompressedNBT.java @@ -18,8 +18,6 @@ import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; -import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.GuiScreen; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.CompressedStreamTools; import net.minecraft.nbt.NBTTagCompound; @@ -85,11 +83,5 @@ public void write(final int value) throws IOException { @Override @SideOnly(Side.CLIENT) - public void clientPacketData(final INetworkInfo network, final AppEngPacket packet, final EntityPlayer player) { - final GuiScreen gs = Minecraft.getMinecraft().currentScreen; - - // if (gs instanceof GuiInterfaceTerminal) { - // ((GuiInterfaceTerminal) gs).postUpdate(this.in); - // } - } + public void clientPacketData(final INetworkInfo network, final AppEngPacket packet, final EntityPlayer player) {} }