mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-23 10:35:12 +01:00
Fix BaseProtocol
This commit is contained in:
parent
df2d9ba3d8
commit
7d671c2908
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user