mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Increase version check incase of bigger versions in the future
This commit is contained in:
parent
6d27f17399
commit
f444bc7b0b
@ -780,7 +780,6 @@ public abstract class Disguise {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task = Bukkit.getScheduler().
|
task = Bukkit.getScheduler().
|
||||||
|
|
||||||
runTaskTimer(LibsDisguises.getInstance(), velocityRunnable, 1, 1);
|
runTaskTimer(LibsDisguises.getInstance(), velocityRunnable, 1, 1);
|
||||||
|
|
||||||
if (this instanceof PlayerDisguise) {
|
if (this instanceof PlayerDisguise) {
|
||||||
|
@ -43,7 +43,7 @@ public class UpdateChecker {
|
|||||||
con.getOutputStream().write(
|
con.getOutputStream().write(
|
||||||
("key=98BE0FE67F88AB82B4C197FAF1DC3B69206EFDCC4D3B80FC83A00037510B99B4&resource=32453").getBytes("UTF-8"));
|
("key=98BE0FE67F88AB82B4C197FAF1DC3B69206EFDCC4D3B80FC83A00037510B99B4&resource=32453").getBytes("UTF-8"));
|
||||||
String version = new BufferedReader(new InputStreamReader(con.getInputStream())).readLine();
|
String version = new BufferedReader(new InputStreamReader(con.getInputStream())).readLine();
|
||||||
if (version.length() <= 7) {
|
if (version.length() <= 10) {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user