Fix # not being caught in build no
This commit is contained in:
parent
e29ad3ffde
commit
843d955521
@ -325,12 +325,12 @@ public class LibsPremium {
|
|||||||
try {
|
try {
|
||||||
PluginInformation info = getInformation(f);
|
PluginInformation info = getInformation(f);
|
||||||
|
|
||||||
if (info.getBuildNumber() == null || !info.getBuildNumber().matches("[0-9]+")) {
|
if (info.getBuildNumber() == null || !info.getBuildNumber().matches("#[0-9]+")) {
|
||||||
f.delete();
|
f.delete();
|
||||||
DisguiseUtilities.getLogger().info("Ew, I don't recognize " + f.getName());
|
DisguiseUtilities.getLogger().info("Ew, I don't recognize " + f.getName());
|
||||||
continue;
|
continue;
|
||||||
} else if (Integer.parseInt(info.getBuildNumber()) <
|
} else if (Integer.parseInt(info.getBuildNumber().replace("#", "")) <
|
||||||
Integer.parseInt(LibsDisguises.getInstance().getBuildNo())) {
|
Integer.parseInt(LibsDisguises.getInstance().getBuildNo().replace("#", ""))) {
|
||||||
f.delete();
|
f.delete();
|
||||||
DisguiseUtilities.getLogger().info("Ew, " + f.getName() + " is so old");
|
DisguiseUtilities.getLogger().info("Ew, " + f.getName() + " is so old");
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user