Closed Condordito closed 3 months ago
Btw, I forgot this, but I'm not sure why you removed
public static final Deque<GameProfile> UserCache_gameProfiles;
That is present in older versions and is still considered a part of the cache.
I will add back UserCacheEntry_setLastAccess
because we are still modifying a cache. You can't just remove this just because it doesn't exist in older versions.
@CryptoMorin
public static final Deque
UserCache_gameProfiles; That is present in older versions and is still considered a part of the cache. I will add back UserCacheEntry_setLastAccess because we are still modifying a cache. You can't just remove this just because it doesn't exist in older versions.
MojangAPI#cacheProfile
already handles this when calling the server implementation. Should it also increase the last access field when reading from it? It's not present in all versions and it might not have any side effects
Oh I see, my bad. I added the Deque just to remove from it which is not needed anymore. I'm not sure of any current side effects of setLastAccess() either (except for usercache.json order), but since we're using the cache, let's just keep it consistent.
This PR fixes #273 and some other minor bugs
Changes
MojangAPI.MOJANG_PROFILE_CACHE
conditionProfilesCore.UserCacheEntry_getProfile
not being accessibleUserCache_profilesByUUID
andUserCache_profilesByName
Profileable#of(Player)