This commit is contained in:
parent
b78675db11
commit
bafa2723c2
@ -1,8 +1,8 @@
|
||||
package com.thebrokenrail.modupdater;
|
||||
|
||||
import com.thebrokenrail.modupdater.command.ModUpdaterCommand;
|
||||
import com.thebrokenrail.modupdater.strategy.util.UpdateStrategyRunner;
|
||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||
import com.thebrokenrail.modupdater.strategy.util.UpdateStrategyRunner;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
@ -2,6 +2,7 @@ package com.thebrokenrail.modupdater.api;
|
||||
|
||||
public interface ConfigObject {
|
||||
String getString(String str) throws MissingValueException;
|
||||
|
||||
int getInt(String str) throws MissingValueException;
|
||||
|
||||
class MissingValueException extends Exception {
|
||||
|
@ -6,8 +6,8 @@ import com.squareup.moshi.JsonDataException;
|
||||
import com.squareup.moshi.Moshi;
|
||||
import com.thebrokenrail.modupdater.ModUpdater;
|
||||
import com.thebrokenrail.modupdater.api.ConfigObject;
|
||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||
import com.thebrokenrail.modupdater.api.UpdateStrategy;
|
||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||
import com.thebrokenrail.modupdater.util.Util;
|
||||
import net.fabricmc.loader.api.SemanticVersion;
|
||||
import net.fabricmc.loader.util.version.VersionParsingException;
|
||||
|
@ -5,8 +5,8 @@ import com.squareup.moshi.JsonDataException;
|
||||
import com.squareup.moshi.Moshi;
|
||||
import com.thebrokenrail.modupdater.ModUpdater;
|
||||
import com.thebrokenrail.modupdater.api.ConfigObject;
|
||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||
import com.thebrokenrail.modupdater.api.UpdateStrategy;
|
||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||
import com.thebrokenrail.modupdater.util.Util;
|
||||
import net.fabricmc.loader.api.SemanticVersion;
|
||||
import net.fabricmc.loader.util.version.VersionParsingException;
|
||||
|
@ -2,8 +2,8 @@ package com.thebrokenrail.modupdater.strategy;
|
||||
|
||||
import com.thebrokenrail.modupdater.ModUpdater;
|
||||
import com.thebrokenrail.modupdater.api.ConfigObject;
|
||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||
import com.thebrokenrail.modupdater.api.UpdateStrategy;
|
||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||
import com.thebrokenrail.modupdater.util.Util;
|
||||
import net.fabricmc.loader.api.SemanticVersion;
|
||||
import net.fabricmc.loader.util.version.VersionParsingException;
|
||||
|
@ -2,9 +2,9 @@ package com.thebrokenrail.modupdater.strategy.util;
|
||||
|
||||
import com.thebrokenrail.modupdater.ModUpdater;
|
||||
import com.thebrokenrail.modupdater.api.ConfigObject;
|
||||
import com.thebrokenrail.modupdater.api.UpdateStrategy;
|
||||
import com.thebrokenrail.modupdater.api.impl.ConfigObjectCustom;
|
||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||
import com.thebrokenrail.modupdater.api.UpdateStrategy;
|
||||
import com.thebrokenrail.modupdater.util.Util;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.fabricmc.loader.api.ModContainer;
|
||||
|
@ -81,7 +81,7 @@ public class Util {
|
||||
}
|
||||
|
||||
public static boolean isVersionCompatible(String versionStr) {
|
||||
return isVersionCompatible(versionStr,'+') || isVersionCompatible(versionStr, '-');
|
||||
return isVersionCompatible(versionStr, '+') || isVersionCompatible(versionStr, '-');
|
||||
}
|
||||
|
||||
public static boolean isFileCompatible(String fileName) {
|
||||
|
Reference in New Issue
Block a user