Use new config compiler
All checks were successful
ci/woodpecker/push/jfmod Pipeline was successful

This commit is contained in:
Johannes Frohnmeyer 2022-12-29 16:02:29 +01:00
parent fe5314ff80
commit 170271666d
Signed by: Johannes
GPG Key ID: E76429612C2929F4
7 changed files with 18 additions and 14 deletions

View File

@ -1,8 +1,7 @@
import io.gitlab.jfronny.scripts.*
plugins {
id("jfmod") version "1.2-SNAPSHOT"
id("io.gitlab.jfronny.libjf.libjf-config-compiler-plugin")
id("jfmod") version "1.3-SNAPSHOT"
}
dependencies {
@ -10,7 +9,6 @@ dependencies {
modImplementation("io.gitlab.jfronny.libjf:libjf-translate-v1:${prop("libjf_version")}")
// Dev env
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-reflect-v1:${prop("libjf_version")}")
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-ui-tiny-v1:${prop("libjf_version")}")
modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil:${prop("libjf_version")}")
modLocalRuntime("com.terraformersmc:modmenu:${prop("modmenu_version")}")

View File

@ -1,7 +1,7 @@
# https://fabricmc.net/develop/
minecraft_version=1.19.3
yarn_mappings=build.2
loader_version=0.14.11
yarn_mappings=build.5
loader_version=0.14.12
maven_group=io.gitlab.jfronny
archives_base_name=translater
@ -13,6 +13,6 @@ curseforge_id=394823
curseforge_required_dependencies=libjf
curseforge_optional_dependencies=modmenu
libjf_version=3.3.0
fabric_version=0.68.1+1.19.3
modmenu_version=5.0.0-alpha.4
libjf_version=3.4.1
fabric_version=0.70.0+1.19.3
modmenu_version=5.0.2

View File

@ -1,13 +1,9 @@
pluginManagement {
val libjf_version: String by settings
repositories {
maven("https://maven.fabricmc.net/") // FabricMC
maven("https://maven.frohnmeyer-wds.de/artifacts") // scripts
gradlePluginPortal()
}
plugins {
id("io.gitlab.jfronny.libjf.libjf-config-compiler-plugin") version libjf_version
}
}
rootProject.name = "translater"

View File

@ -10,4 +10,8 @@ public class Cfg {
@Entry public static String targetLanguage = "en";
@Entry public static ProgressMode renderProgress = ProgressMode.None;
@Entry public static boolean forceRegenerate = false;
static {
JFC_Cfg.ensureInitialized();
}
}

View File

@ -1,5 +1,6 @@
package io.gitlab.jfronny.translater.mixin;
import io.gitlab.jfronny.libjf.LibJf;
import io.gitlab.jfronny.translater.Translater;
import org.objectweb.asm.tree.ClassNode;
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
@ -22,6 +23,7 @@ public class Plugin implements IMixinConfigPlugin {
@SuppressWarnings("ReferenceToMixin")
@Override
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
LibJf.setup();
if (Objects.equals(mixinClassName, LanguageMixin.class.getName())
|| Objects.equals(mixinClassName, TranslationStorageAccessor.class.getName()))
return true;

View File

@ -1,5 +1,5 @@
#---Lang---
#Wed Dec 07 21:54:20 CET 2022
#Thu Dec 29 16:00:32 CET 2022
=
\nYour\ ban\ will\ be\ removed\ on\ %s=\nYour ban will be lifted %s
\ \ ExtraLarge\:\ 0.001=\ ExtraLarge\: 0.001
@ -8019,6 +8019,7 @@ Don't\ lose\ it=Do not miss it
Don't\ mess\ with\ these\ settings\ for\ normal\ gameplay.=Don't mess with these settings for normal gameplay.
Don't\ tell\ your\ viewers.=Don&\#39;t tell your audience
Don't\ use\ fluids.=Do not use liquids.
Donate=to give
Done=Made
Donkey=Ass
Donkey\ Chest\ equips=Out of the Box and mounted
@ -10794,6 +10795,7 @@ Gingerbread\ Sheet=Chips with gingerbread
Gingerbread\ Snowman=ginger ice
Gingerbread\ Star=ginger star
GitHub\ Releases=Start GitHub
GitHub\ Sponsors=GitHub Contributors
Give=Give
Give\ Command\:=Give Command\:
Give\ Feedback=Leave A Review
@ -15488,6 +15490,7 @@ Master\ Procrastinator=Procrastination teacher
Master\ Volume=Captain Tom's
Master\ Volume\ Slider=Master volume slider
Master\ Wand=lady&\#39;s wand
Mastodon=mastodon mastodon
Match=school
Match\ Any=Match Any
Match\ Block\ Only=Diary is just horizontal
@ -17991,6 +17994,7 @@ Pavement\ for\ road\ building=pavement for road construction
Paxel\ Attack\ Speed=Paxel Attack Speed
Paxel\ Durability\ Factor=Paxel Durability Factor
Pay\ Dirt=Pay for the dirt
PayPal=Through PayPal
Peace\ in\ the\ world,\ or\ the\ world\ in\ pieces\!=Peace in the world, or the world in pieces\!
Peace\ of\ Mind=Inner peace
Peaceful=Nice

View File

@ -15,7 +15,7 @@
"icon": "assets/translater/icon.png",
"environment": "client",
"entrypoints": {
"libjf:config": ["io.gitlab.jfronny.translater.Cfg"]
"libjf:config": ["io.gitlab.jfronny.translater.JFC_Cfg"]
},
"mixins": [
"translater.mixins.json"