Skip to content

Commit fd10586

Browse files
committed
update buildscript
1 parent c49bf13 commit fd10586

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//version: 1641429628falsepattern16
1+
//version: 1641429628falsepattern18
22
/*
33
DO NOT CHANGE THIS FILE!
44
@@ -95,6 +95,7 @@ checkPropertyExists("repositoryName")
9595
checkPropertyExists("mavenGroupId")
9696
checkPropertyExists("mavenArtifactId")
9797
checkPropertyExists("hasMixinDeps")
98+
checkPropertyExists("mixinPreinitConfig")
9899

99100

100101
String javaSourceDir = "src/main/java/"
@@ -441,7 +442,7 @@ def getManifestAttributes() {
441442
if(usesMixins.toBoolean()) {
442443
manifestAttributes += [
443444
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
444-
"MixinConfigs" : "mixins." + modId + ".json",
445+
"MixinConfigs" : "mixins." + modId + ".json" + (mixinPreinitConfig ? "," + mixinPreinitConfig : ""),
445446
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
446447
]
447448
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ hasMixinDeps = false
6868
mixinPlugin =
6969
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
7070
mixinsPackage =
71+
# Specify a preinit mixin here. Preinit mixins should be used very rarely, if at all, so this mixin config will not be managed by the buildscript, only included.
72+
mixinPreinitConfig =
7173
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
7274
# This parameter is for legacy compatability only
7375
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin

0 commit comments

Comments
 (0)