From 7d671c2908cfc7da695b49eb64a20afd1cbcaf32 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Wed, 27 Jun 2018 09:51:41 -0300 Subject: [PATCH] Fix BaseProtocol --- .../java/us/myles/ViaVersion/protocols/base/BaseProtocol.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java b/common/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java index 8ce932bc8..2bc87bbb4 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/base/BaseProtocol.java @@ -125,7 +125,7 @@ public class BaseProtocol extends Protocol { handler(new PacketHandler() { @Override public void handle(PacketWrapper wrapper) throws Exception { - int protocol = wrapper.user().get(ProtocolInfo.class).getProtocolVersion(); + int protocol = wrapper.user().get(ProtocolInfo.class).getServerProtocolVersion(); if (protocol < ProtocolVersion.v1_13.getId()) handleLoginSuccess(wrapper); } @@ -141,7 +141,7 @@ public class BaseProtocol extends Protocol { handler(new PacketHandler() { @Override public void handle(PacketWrapper wrapper) throws Exception { - int protocol = wrapper.user().get(ProtocolInfo.class).getProtocolVersion(); + int protocol = wrapper.user().get(ProtocolInfo.class).getServerProtocolVersion(); if (protocol >= ProtocolVersion.v1_13.getId()) handleLoginSuccess(wrapper); }