chore: update to 1.20.5
This commit is contained in:
parent
62f4415b28
commit
60cfd016d6
|
@ -1,16 +1,17 @@
|
||||||
plugins {
|
plugins {
|
||||||
id("jfmod") version "1.5-SNAPSHOT"
|
id("jfmod") version "1.6-SNAPSHOT"
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects { group = "io.gitlab.jfronny" }
|
allprojects { group = "io.gitlab.jfronny" }
|
||||||
base.archivesName = "translater"
|
base.archivesName = "translater"
|
||||||
|
|
||||||
val modmenuVersion = "9.0.0-pre.1"
|
val modmenuVersion = "10.0.0-beta.1"
|
||||||
jfMod {
|
jfMod {
|
||||||
minecraftVersion = "1.20.4"
|
minecraftVersion = "1.20.5"
|
||||||
yarn("build.1")
|
yarn("build.1")
|
||||||
loaderVersion = "0.15.0"
|
loaderVersion = "0.15.10"
|
||||||
libJfVersion = "3.14.1"
|
libJfVersion = "3.15.5"
|
||||||
|
fabricApiVersion = "0.97.6+1.20.5"
|
||||||
|
|
||||||
modrinth {
|
modrinth {
|
||||||
projectId = "translater"
|
projectId = "translater"
|
||||||
|
@ -25,11 +26,15 @@ jfMod {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
modImplementation("io.gitlab.jfronny.libjf:libjf-config-core-v2:${jfMod.libJfVersion.get()}")
|
modImplementation("io.gitlab.jfronny.libjf:libjf-config-core-v2")
|
||||||
modImplementation("io.gitlab.jfronny.libjf:libjf-translate-v1:${jfMod.libJfVersion.get()}")
|
modImplementation("io.gitlab.jfronny.libjf:libjf-translate-v1")
|
||||||
|
|
||||||
// Dev env
|
// Dev env
|
||||||
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-ui-tiny:${jfMod.libJfVersion.get()}")
|
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-ui-tiny")
|
||||||
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil:${jfMod.libJfVersion.get()}")
|
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil")
|
||||||
modLocalRuntime("com.terraformersmc:modmenu:$modmenuVersion")
|
modLocalRuntime("com.terraformersmc:modmenu:$modmenuVersion")
|
||||||
|
// for modmenu
|
||||||
|
modLocalRuntime("net.fabricmc.fabric-api:fabric-resource-loader-v0")
|
||||||
|
modLocalRuntime("net.fabricmc.fabric-api:fabric-screen-api-v1")
|
||||||
|
modLocalRuntime("net.fabricmc.fabric-api:fabric-key-binding-api-v1")
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,8 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
@Mixin(SplashOverlay.class)
|
@Mixin(SplashOverlay.class)
|
||||||
public abstract class SplashScreenMixin extends Overlay {
|
public abstract class SplashScreenMixin extends Overlay {
|
||||||
|
@ -60,10 +62,9 @@ public abstract class SplashScreenMixin extends Overlay {
|
||||||
]
|
]
|
||||||
}""").getAsJsonObject())
|
}""").getAsJsonObject())
|
||||||
.flatMap(ml -> FontType.BITMAP.getLoaderCodec().decode(JsonOps.INSTANCE, ml))
|
.flatMap(ml -> FontType.BITMAP.getLoaderCodec().decode(JsonOps.INSTANCE, ml))
|
||||||
.map(fl -> fl.build().left().orElseThrow()).get()
|
.map(fl -> fl.build().left().orElseThrow()).getOrThrow()
|
||||||
.left().orElseThrow()
|
|
||||||
.load(client.getResourceManager());
|
.load(client.getResourceManager());
|
||||||
fontStorage.setFonts(Collections.singletonList(font));
|
fontStorage.setFonts(Collections.singletonList(new Font.FontFilterPair(font, FontFilterType.FilterMap.NO_FILTER)), Set.of());
|
||||||
translater$textRenderer = new TextRenderer(id -> fontStorage, false);
|
translater$textRenderer = new TextRenderer(id -> fontStorage, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue