Archived
0

fix: имя переменной

This commit is contained in:
2017-06-11 02:30:15 +03:00
parent 606ed43bde
commit f23e4e8532
2 changed files with 4 additions and 5 deletions

View File

@@ -4,7 +4,6 @@
*/
package asys.bridge.client;
import asys.bridge.bukkit.BridgePlugin;
import asys.mcsmanager.packets.*;
import com.google.common.collect.BiMap;
import com.google.common.collect.ImmutableBiMap;
@@ -24,7 +23,7 @@ public class ClientPacketHandler extends ChannelInboundHandlerAdapter implements
);
private static Map<Class<? extends Packet>, IPacketHandler> handshakeHandlers;
private static final BiMap<Integer, Class<? extends Packet>> pingPackets = ImmutableBiMap.of(
private static final BiMap<Integer, Class<? extends Packet>> knownPackets = ImmutableBiMap.of(
3, CS_Ping.class,
4, CS_ConsoleMessage.class,
5, SC_Command.class
@@ -83,7 +82,7 @@ public class ClientPacketHandler extends ChannelInboundHandlerAdapter implements
String.format("Handshake: #%d %s", packet.getErrorCode(), packet.getMessage()));
bridge.setNeedReconnect(false);
} else {
context.channel().attr(KNOWN_PACKETS).set(pingPackets);
context.channel().attr(KNOWN_PACKETS).set(knownPackets);
bridge.getLogger().info("Handshake: OK");
bridge.startPing(context.channel());
}