mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Rewrite transfer intention on older servers
This commit is contained in:
parent
52b9db5029
commit
ceae2c2094
@ -95,8 +95,14 @@ public class BaseProtocol extends AbstractProtocol {
|
||||
|
||||
if (state == STATUS_INTENT) {
|
||||
info.setState(State.STATUS);
|
||||
} else if (state == LOGIN_INTENT || state == TRANSFER_INTENT) {
|
||||
} else if (state == LOGIN_INTENT) {
|
||||
info.setState(State.LOGIN);
|
||||
} else if (state == TRANSFER_INTENT) {
|
||||
info.setState(State.LOGIN);
|
||||
|
||||
if (serverProtocol < ProtocolVersion.v1_20_5.getVersion()) {
|
||||
wrapper.set(Type.VAR_INT, 1, LOGIN_INTENT);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user