mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Made update check not show on dev version.
It's bloody annoying.
This commit is contained in:
parent
e80e83af9e
commit
e728acfae6
3 changed files with 7 additions and 2 deletions
|
@ -39,7 +39,7 @@ public class InitEvents{
|
|||
Util.registerEvent(new NEIScreenEvents());
|
||||
}
|
||||
|
||||
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
||||
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled() && !Util.isDevVersion()){
|
||||
Util.registerEvent(new UpdateCheckerClientNotificationEvent());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ package ellpeck.actuallyadditions.update;
|
|||
|
||||
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
||||
import ellpeck.actuallyadditions.util.ModUtil;
|
||||
import ellpeck.actuallyadditions.util.Util;
|
||||
|
||||
public class UpdateChecker{
|
||||
|
||||
|
@ -22,7 +23,7 @@ public class UpdateChecker{
|
|||
public static String updateVersion;
|
||||
|
||||
public static void init(){
|
||||
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
||||
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled() && !Util.isDevVersion()){
|
||||
ModUtil.LOGGER.info("Initializing Update Checker...");
|
||||
new ThreadUpdateChecker();
|
||||
}
|
||||
|
|
|
@ -40,6 +40,10 @@ public class Util{
|
|||
FMLCommonHandler.instance().bus().register(o);
|
||||
}
|
||||
|
||||
public static boolean isDevVersion(){
|
||||
return ModUtil.VERSION.equals("@VERSION@");
|
||||
}
|
||||
|
||||
public static void registerDispenserHandler(Item item, BehaviorDefaultDispenseItem handler){
|
||||
BlockDispenser.dispenseBehaviorRegistry.putObject(item, handler);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue