From f444bc7b0b74a6d3892c7a6d2fa5c00bf6913db6 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 10 Aug 2017 07:16:10 +1200 Subject: [PATCH] Increase version check incase of bigger versions in the future --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 1 - src/me/libraryaddict/disguise/utilities/UpdateChecker.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index fdcbeec4..91b47f3b 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -780,7 +780,6 @@ public abstract class Disguise { } task = Bukkit.getScheduler(). - runTaskTimer(LibsDisguises.getInstance(), velocityRunnable, 1, 1); if (this instanceof PlayerDisguise) { diff --git a/src/me/libraryaddict/disguise/utilities/UpdateChecker.java b/src/me/libraryaddict/disguise/utilities/UpdateChecker.java index 09948ef7..6c41bfb7 100644 --- a/src/me/libraryaddict/disguise/utilities/UpdateChecker.java +++ b/src/me/libraryaddict/disguise/utilities/UpdateChecker.java @@ -43,7 +43,7 @@ public class UpdateChecker { con.getOutputStream().write( ("key=98BE0FE67F88AB82B4C197FAF1DC3B69206EFDCC4D3B80FC83A00037510B99B4&resource=32453").getBytes("UTF-8")); String version = new BufferedReader(new InputStreamReader(con.getInputStream())).readLine(); - if (version.length() <= 7) { + if (version.length() <= 10) { return version; } }