From d7df0df49642fcd739a7fb29dad25ccdb806c986 Mon Sep 17 00:00:00 2001 From: FlorianMichael Date: Sun, 25 Aug 2024 21:48:55 +0200 Subject: [PATCH] Minor code cleanup --- .../fabric/common/protocol/HostnameParserProtocol.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/viaversion/fabric/common/protocol/HostnameParserProtocol.java b/src/main/java/com/viaversion/fabric/common/protocol/HostnameParserProtocol.java index 3a5e5d5..0d83fb4 100644 --- a/src/main/java/com/viaversion/fabric/common/protocol/HostnameParserProtocol.java +++ b/src/main/java/com/viaversion/fabric/common/protocol/HostnameParserProtocol.java @@ -22,7 +22,6 @@ import com.viaversion.viaversion.api.protocol.AbstractSimpleProtocol; import com.viaversion.viaversion.api.protocol.packet.PacketWrapper; import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers; import com.viaversion.viaversion.api.protocol.remapper.ValueTransformer; -import com.viaversion.viaversion.api.type.Type; import com.viaversion.viaversion.api.protocol.packet.State; import com.viaversion.viaversion.api.type.Types; import com.viaversion.viaversion.protocols.base.ServerboundHandshakePackets; @@ -32,7 +31,7 @@ public class HostnameParserProtocol extends AbstractSimpleProtocol { @Override protected void registerPackets() { - registerServerbound(State.HANDSHAKE, ServerboundHandshakePackets.CLIENT_INTENTION.getId(), ServerboundHandshakePackets.CLIENT_INTENTION.getId(), new PacketHandlers() { + registerServerbound(State.HANDSHAKE, ServerboundHandshakePackets.CLIENT_INTENTION, new PacketHandlers() { @Override protected void register() { map(Types.VAR_INT); // Protocol version