Just libjf things
This commit is contained in:
parent
eb63e87717
commit
660751fd43
|
@ -1,6 +1,5 @@
|
||||||
package io.gitlab.jfronny.dynres;
|
package io.gitlab.jfronny.dynres;
|
||||||
|
|
||||||
import io.gitlab.jfronny.libjf.Libjf;
|
|
||||||
import io.gitlab.jfronny.libweb.api.LibWebAPI;
|
import io.gitlab.jfronny.libweb.api.LibWebAPI;
|
||||||
import io.gitlab.jfronny.libweb.api.LibWebInit;
|
import io.gitlab.jfronny.libweb.api.LibWebInit;
|
||||||
import net.fabricmc.api.EnvType;
|
import net.fabricmc.api.EnvType;
|
||||||
|
@ -16,7 +15,6 @@ public class DynRes implements LibWebInit {
|
||||||
public static String resourceLink = "";
|
public static String resourceLink = "";
|
||||||
|
|
||||||
static {
|
static {
|
||||||
Libjf.registerConfig("dynres", Cfg.class);
|
|
||||||
resFile = new File(FabricLoader.getInstance().getGameDir().toFile(), Cfg.resourcesFile);
|
resFile = new File(FabricLoader.getInstance().getGameDir().toFile(), Cfg.resourcesFile);
|
||||||
if (!resFile.isFile()) {
|
if (!resFile.isFile()) {
|
||||||
FabricGuiEntry.displayCriticalError(new FileNotFoundException("The file " + resFile + " does not exist in the game directory but is required"), true);
|
FabricGuiEntry.displayCriticalError(new FileNotFoundException("The file " + resFile + " does not exist in the game directory but is required"), true);
|
||||||
|
|
|
@ -4,7 +4,6 @@ import io.gitlab.jfronny.dynres.Cfg;
|
||||||
import io.gitlab.jfronny.dynres.DynRes;
|
import io.gitlab.jfronny.dynres.DynRes;
|
||||||
import io.gitlab.jfronny.dynres.Logger;
|
import io.gitlab.jfronny.dynres.Logger;
|
||||||
import io.gitlab.jfronny.dynres.ServerPropertiesHandlerExt;
|
import io.gitlab.jfronny.dynres.ServerPropertiesHandlerExt;
|
||||||
import io.gitlab.jfronny.libjf.Libjf;
|
|
||||||
import io.gitlab.jfronny.libweb.extra.LibWeb;
|
import io.gitlab.jfronny.libweb.extra.LibWeb;
|
||||||
import io.gitlab.jfronny.libweb.extra.WebPaths;
|
import io.gitlab.jfronny.libweb.extra.WebPaths;
|
||||||
import net.minecraft.server.dedicated.ServerPropertiesHandler;
|
import net.minecraft.server.dedicated.ServerPropertiesHandler;
|
||||||
|
@ -37,7 +36,6 @@ public class ServerPropertiesHandlerMixin implements ServerPropertiesHandlerExt
|
||||||
if (print)
|
if (print)
|
||||||
Logger.l.info("Pack link: " + resourcePack);
|
Logger.l.info("Pack link: " + resourcePack);
|
||||||
resourcePackSha1 = "";
|
resourcePackSha1 = "";
|
||||||
Libjf.registerConfig("dynres", Cfg.class);
|
|
||||||
if (Cfg.hashResources) {
|
if (Cfg.hashResources) {
|
||||||
try {
|
try {
|
||||||
FileInputStream fs = new FileInputStream(DynRes.resFile);
|
FileInputStream fs = new FileInputStream(DynRes.resFile);
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.9.3+build.207",
|
"fabricloader": ">=0.9.3+build.207",
|
||||||
"minecraft": "*"
|
"minecraft": "*",
|
||||||
|
"libjf": ">=1.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue