Skip to content

Commit 9b6b47c

Browse files
committed
Fix build-time templating
1 parent b9e0391 commit 9b6b47c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/main/java/org/polyfrost/colorsaturation/ColorSaturation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
public class ColorSaturation {
1818

1919
// Sets the variables from `gradle.properties`. See the `blossom` config in `build.gradle.kts`.
20-
public static final String MODID = "@ID@";
21-
public static final String NAME = "@NAME@";
22-
public static final String VERSION = "@VER@";
20+
public static final String MODID = "@MOD_ID@";
21+
public static final String NAME = "@MOD_NAME@";
22+
public static final String VERSION = "@MOD_VERSION@";
2323
public static SaturationConfig config;
2424

2525
// Register the config and commands.

src/main/resources/mcmod.info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[
22
{
3-
"modid": "${id}",
4-
"name": "${name}",
3+
"modid": "${mod_id}",
4+
"name": "${mod_name}",
55
"description": "",
6-
"version": "${version}",
7-
"mcversion": "${mcVersionStr}",
6+
"version": "${mod_version}",
7+
"mcversion": "${mc_version}",
88
"url": "",
99
"updateUrl": "",
1010
"authorList": [

src/main/resources/mixins.colorsaturation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compatibilityLevel": "JAVA_8",
33
"minVersion": "0.7",
44
"package": "org.polyfrost.colorsaturation.mixin",
5-
"refmap": "mixins.${id}.refmap.json",
5+
"refmap": "mixins.${mod_id}.refmap.json",
66
"injectors": {
77
"maxShiftBy": 5
88
},

0 commit comments

Comments
 (0)