Convert old offline account setings

This commit is contained in:
huangyuhui
2018-08-14 00:08:35 +08:00
parent b079940cd9
commit 9e2cb25d01
4 changed files with 103 additions and 29 deletions

View File

@@ -37,6 +37,10 @@ public class OfflineAccountFactory extends AccountFactory<OfflineAccount> {
private OfflineAccountFactory() {
}
public OfflineAccount create(String username, UUID uuid) {
return new OfflineAccount(username, uuid);
}
@Override
public OfflineAccount create(CharacterSelector selector, String username, String password, Object additionalData) {
return new OfflineAccount(username, getUUIDFromUserName(username));