Skip to content

Commit 32d01a1

Browse files
committed
Enable mixins
1 parent f4ca5a4 commit 32d01a1

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.bymarcin.mmrcreate.mixin;
2+
3+
import com.bymarcin.mmrcreate.data.KineticRequirementJS;
4+
import es.degrassi.mmreborn.common.integration.kubejs.MachineRecipeBuilderJS;
5+
import org.spongepowered.asm.mixin.Mixin;
6+
7+
@Mixin({ MachineRecipeBuilderJS.class })
8+
public abstract class KubeJSIntegrationMixin implements KineticRequirementJS {
9+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"required": true,
3+
"package": "com.bymarcin.mmrcreate.mixin",
4+
"compatibilityLevel": "JAVA_17",
5+
"mixins": [
6+
"KubeJSIntegrationMixin"
7+
],
8+
"client": [
9+
],
10+
"injectors": {
11+
"defaultRequire": 1
12+
}
13+
}

src/main/templates/META-INF/neoforge.mods.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ authors="${mod_authors}" #optional
4747
description='''${mod_description}'''
4848

4949
# The [[mixins]] block allows you to declare your mixin config to FML so that it gets loaded.
50-
#[[mixins]]
51-
#config="${mod_id}.mixins.json"
50+
[[mixins]]
51+
config="${mod_id}.mixins.json"
5252

5353
# The [[accessTransformers]] block allows you to declare where your AT file is.
5454
# If this block is omitted, a fallback attempt will be made to load an AT from META-INF/accesstransformer.cfg

0 commit comments

Comments
 (0)