Skip to content

Commit

Permalink
Revert "Added display of brand name under f3"
Browse files Browse the repository at this point in the history
This reverts commit 1d200dc.

# Conflicts:
#	src/main/java/ru/nanit/limbo/protocol/registry/State.java
  • Loading branch information
MiGoYAm committed Dec 11, 2021
1 parent 27ec7af commit 974e243
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 31 deletions.
2 changes: 0 additions & 2 deletions src/main/java/ru/nanit/limbo/connection/ClientConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class ClientConnection extends ChannelInboundHandlerAdapter {

private static PreEncodedPacket PACKET_LOGIN_SUCCESS;
private static PreEncodedPacket PACKET_JOIN_GAME;
private static PreEncodedPacket PACKET_PLUGIN_MESSAGE;
private static PreEncodedPacket PACKET_PLAYER_ABILITIES;
private static PreEncodedPacket PACKET_PLAYER_INFO;
private static PreEncodedPacket PACKET_PLAYER_POS;
Expand Down Expand Up @@ -212,7 +211,6 @@ private void fireLoginSuccess() {
server.getConnections().addConnection(this);

writePacket(PACKET_JOIN_GAME);
writePacket(PACKET_PLUGIN_MESSAGE);
writePacket(PACKET_PLAYER_ABILITIES);
writePacket(PACKET_PLAYER_POS);
writePacket(PACKET_PLAYER_INFO);
Expand Down

This file was deleted.

17 changes: 11 additions & 6 deletions src/main/java/ru/nanit/limbo/protocol/registry/State.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package ru.nanit.limbo.protocol.registry;

import ru.nanit.limbo.protocol.Packet;
import ru.nanit.limbo.protocol.packets.PacketHandshake;
import ru.nanit.limbo.protocol.packets.*;
import ru.nanit.limbo.protocol.packets.login.*;
import ru.nanit.limbo.protocol.packets.play.*;
import ru.nanit.limbo.protocol.packets.status.PacketStatusPing;
import ru.nanit.limbo.protocol.packets.status.PacketStatusRequest;
import ru.nanit.limbo.protocol.packets.status.PacketStatusResponse;

import static ru.nanit.limbo.protocol.registry.Version.*;

import java.util.*;
import java.util.function.Supplier;

import static ru.nanit.limbo.protocol.registry.Version.*;

public enum State {

HANDSHAKING(0) {
Expand Down Expand Up @@ -70,6 +70,13 @@ public enum State {
map(0x0F, V1_17, V1_18)
);

clientBound.register(PacketDeclareCommands::new,
map(0x11, V1_13, V1_14_4),
map(0x12, V1_15, V1_15_2),
map(0x11, V1_16, V1_16_1),
map(0x10, V1_16_2, V1_16_4),
map(0x12, V1_17, V1_18)
);
clientBound.register(PacketJoinGame::new,
map(0x01, V1_8, V1_8),
map(0x23, V1_9, V1_12_2),
Expand All @@ -82,9 +89,7 @@ public enum State {
);
// to do
clientBound.register(PacketPluginMessage::new,
map(0x19, V1_13, V1_13_2),
map(0x18, V1_14, V1_14_4),
map(0x19, V1_15, V1_18)
map(0x18, V1_18, V1_18)
);
clientBound.register(PacketPlayerAbilities::new,
map(0x39, V1_8, V1_8),
Expand Down

0 comments on commit 974e243

Please sign in to comment.