mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-12 15:07:22 +01:00
Expose methods in the updater
This commit is contained in:
parent
728917e31a
commit
99883994be
@ -279,7 +279,7 @@ public class PacketEventsUpdater {
|
||||
/**
|
||||
* Copied from DisguiseUtilities
|
||||
*/
|
||||
private boolean isOlderThan(String requiredVersion, String theirVersion) {
|
||||
public static boolean isOlderThan(String requiredVersion, String theirVersion) {
|
||||
int[] required = getNumericVersion(requiredVersion);
|
||||
int[] has = getNumericVersion(theirVersion);
|
||||
|
||||
@ -297,7 +297,7 @@ public class PacketEventsUpdater {
|
||||
/**
|
||||
* Copied from DisguiseUtilities
|
||||
*/
|
||||
private int[] getNumericVersion(String version) {
|
||||
public static int[] getNumericVersion(String version) {
|
||||
int[] v = new int[0];
|
||||
for (String split : version.split("[.\\-]")) {
|
||||
if (!split.matches("\\d+")) {
|
||||
|
Loading…
Reference in New Issue
Block a user