From c8159e8963c60eea5b8644017d3f9f8e5f6e31ee Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 2 Jul 2017 17:12:39 +1200 Subject: [PATCH] Add a check for translates --- src/me/libraryaddict/disguise/utilities/TranslateType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/TranslateType.java b/src/me/libraryaddict/disguise/utilities/TranslateType.java index 44e3df62..a9b81758 100644 --- a/src/me/libraryaddict/disguise/utilities/TranslateType.java +++ b/src/me/libraryaddict/disguise/utilities/TranslateType.java @@ -123,8 +123,8 @@ public enum TranslateType { } public String reverseGet(String translated) { - if (translated == null) - return null; + if (translated == null || !LibsPremium.isPremium() || !DisguiseConfig.isUseTranslations()) + return translated; String lowerCase = translated.toLowerCase();