Rewrite transfer intention on older servers

This commit is contained in:
Nassim Jahnke 2024-01-18 21:44:26 +01:00
parent 52b9db5029
commit ceae2c2094
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
1 changed files with 7 additions and 1 deletions

View File

@ -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);
}
}
});
}