Seamlessly support offline-mode more effectively by always skipping Mojang lookups.

This commit is contained in:
Tux 2015-06-06 17:23:51 -04:00
parent 665d73af0c
commit d68b2713c4
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public final class UUIDTranslator {
}
// That didn't work. Let's ask Mojang.
if (!expensiveLookups)
if (!expensiveLookups || !ProxyServer.getInstance().getConfig().isOnlineMode())
return null;
Map<String, UUID> uuidMap1;
@ -147,7 +147,7 @@ public final class UUIDTranslator {
}
}
if (!expensiveLookups)
if (!expensiveLookups || !ProxyServer.getInstance().getConfig().isOnlineMode())
return null;
// That didn't work. Let's ask Mojang. This call may fail, because Mojang is insane.