Increase version check incase of bigger versions in the future

This commit is contained in:
libraryaddict 2017-08-10 07:16:10 +12:00
parent 6d27f17399
commit f444bc7b0b
2 changed files with 1 additions and 2 deletions

View File

@ -780,7 +780,6 @@ public abstract class Disguise {
}
task = Bukkit.getScheduler().
runTaskTimer(LibsDisguises.getInstance(), velocityRunnable, 1, 1);
if (this instanceof PlayerDisguise) {

View File

@ -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;
}
}