From d68b2713c49181c3d187817c07e9a43a27853536 Mon Sep 17 00:00:00 2001 From: Tux Date: Sat, 6 Jun 2015 17:23:51 -0400 Subject: [PATCH] Seamlessly support offline-mode more effectively by always skipping Mojang lookups. --- .../minecraft/redisbungee/util/UUIDTranslator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDTranslator.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDTranslator.java index 72ddc69..846e060 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDTranslator.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDTranslator.java @@ -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 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.