Fix UUID parsing

This commit is contained in:
Jedediah Smith 2017-02-03 22:55:46 -05:00
parent b80a58c471
commit 91846d0a9e
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import tc.oc.api.users.UserSearchRequest;
import tc.oc.api.users.UserSearchResponse;
import tc.oc.api.users.UserService;
import tc.oc.api.users.UserUpdateResponse;
import tc.oc.api.util.UUIDs;
import tc.oc.commons.core.concurrent.FutureUtils;
import tc.oc.minecraft.api.entity.OfflinePlayer;
import tc.oc.minecraft.api.server.LocalServer;
@ -41,7 +42,7 @@ public class LocalUserService extends NullModelService<User, UserDoc.Partial> im
@Override
public ListenableFuture<User> find(UserId userId) {
return Futures.immediateFuture(new LocalUserDocument(minecraftServer.getOfflinePlayer(UUID.fromString(userId.player_id()))));
return Futures.immediateFuture(new LocalUserDocument(minecraftServer.getOfflinePlayer(UUIDs.parse(userId.player_id()))));
}
@Override