3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00

Rewrite transfer intention on older servers

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-01-18 21:44:26 +01:00
Ursprung 52b9db5029
Commit ceae2c2094
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -95,8 +95,14 @@ public class BaseProtocol extends AbstractProtocol {
if (state == STATUS_INTENT) { if (state == STATUS_INTENT) {
info.setState(State.STATUS); info.setState(State.STATUS);
} else if (state == LOGIN_INTENT || state == TRANSFER_INTENT) { } else if (state == LOGIN_INTENT) {
info.setState(State.LOGIN); 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);
}
} }
}); });
} }