Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Fix BaseProtocol
Dieser Commit ist enthalten in:
Ursprung
df2d9ba3d8
Commit
7d671c2908
@ -125,7 +125,7 @@ public class BaseProtocol extends Protocol {
|
|||||||
handler(new PacketHandler() {
|
handler(new PacketHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
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())
|
if (protocol < ProtocolVersion.v1_13.getId())
|
||||||
handleLoginSuccess(wrapper);
|
handleLoginSuccess(wrapper);
|
||||||
}
|
}
|
||||||
@ -141,7 +141,7 @@ public class BaseProtocol extends Protocol {
|
|||||||
handler(new PacketHandler() {
|
handler(new PacketHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
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())
|
if (protocol >= ProtocolVersion.v1_13.getId())
|
||||||
handleLoginSuccess(wrapper);
|
handleLoginSuccess(wrapper);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren