2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-12-23 02:28:01 +00:00

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

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.