Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Fix 1.7.2 support when used with ProtocolSupport
Dieser Commit ist enthalten in:
Ursprung
304f9b34fd
Commit
071b42c9e0
@ -113,7 +113,11 @@ public class BaseProtocol extends Protocol {
|
|||||||
ProtocolInfo info = wrapper.user().get(ProtocolInfo.class);
|
ProtocolInfo info = wrapper.user().get(ProtocolInfo.class);
|
||||||
info.setState(State.PLAY);
|
info.setState(State.PLAY);
|
||||||
// Save other info
|
// Save other info
|
||||||
UUID uuid = UUID.fromString(wrapper.get(Type.STRING, 0));
|
String stringUUID = wrapper.get(Type.STRING, 0);
|
||||||
|
if (!stringUUID.contains("-")) {
|
||||||
|
stringUUID = stringUUID.replaceAll("(\\w{8})(\\w{4})(\\w{4})(\\w{4})(\\w{12})", "$1-$2-$3-$4-$5");
|
||||||
|
}
|
||||||
|
UUID uuid = UUID.fromString(stringUUID);
|
||||||
info.setUuid(uuid);
|
info.setUuid(uuid);
|
||||||
info.setUsername(wrapper.get(Type.STRING, 1));
|
info.setUsername(wrapper.get(Type.STRING, 1));
|
||||||
// Add to ported clients
|
// Add to ported clients
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren