6baf952904
Reworked whole Version Checker with an extensible interface to add any other service later on easier. The version checker now has its own config file, to collect the different options and extract them from the main config file. In that you can specify how fine the versions should be checked.
26 lines
432 B
Java
26 lines
432 B
Java
package appeng.services.version;
|
|
|
|
|
|
/**
|
|
* Exceptional template for {@link Version}, when the mod does not want a check
|
|
*/
|
|
public final class DoNotCheckVersion extends BaseVersion
|
|
{
|
|
public DoNotCheckVersion()
|
|
{
|
|
super( Integer.MAX_VALUE, Channel.Release, Integer.MAX_VALUE );
|
|
}
|
|
|
|
@Override
|
|
public boolean isNewerAs( Version maybeOlder )
|
|
{
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String formatted()
|
|
{
|
|
return "dev build";
|
|
}
|
|
}
|