Minor code cleanup

This commit is contained in:
FlorianMichael 2024-08-25 21:48:55 +02:00
parent 5e59b9d947
commit d7df0df496
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -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.packet.PacketWrapper;
import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers; import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers;
import com.viaversion.viaversion.api.protocol.remapper.ValueTransformer; 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.protocol.packet.State;
import com.viaversion.viaversion.api.type.Types; import com.viaversion.viaversion.api.type.Types;
import com.viaversion.viaversion.protocols.base.ServerboundHandshakePackets; import com.viaversion.viaversion.protocols.base.ServerboundHandshakePackets;
@ -32,7 +31,7 @@ public class HostnameParserProtocol extends AbstractSimpleProtocol {
@Override @Override
protected void registerPackets() { 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 @Override
protected void register() { protected void register() {
map(Types.VAR_INT); // Protocol version map(Types.VAR_INT); // Protocol version