Skip to content

Commit 96dc423

Browse files
TehcJSsylv256
authored andcommitted
fix bug & bump version (0.1.1)
1 parent 88a9243 commit 96dc423

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies {
7373

7474
// QSL is not a complete API; You will need Quilted Fabric API to fill in the gaps.
7575
// Quilted Fabric API will automatically pull in the correct QSL version.
76-
modImplementation(libs.quilted.fabric.api)
76+
modRuntimeOnly(libs.quilted.fabric.api)
7777

7878
annotationProcessor("net.auoeke:uncheck:latest.release")
7979

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ kotlin.code.style=official
22
org.gradle.jvmargs=-Xmx1G
33

44
# Mod Properties
5-
modVersion = 0.1.0
5+
modVersion = 0.1.1
66
mavenGroup = net.cursedmc
77
modId = yqh

src/main/java/net/cursedmc/yqh/api/mixin/Mixout.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ static void registerPostMixin(TransformEvent callback) {
2525
POST_MIXIN.add(callback);
2626
}
2727

28-
static void preMixin(String name, ClassNode cn) {
28+
static boolean preMixin(String name, ClassNode cn) {
2929
PRE_MIXIN.forEach(callback -> callback.transform(name, cn));
30+
return PRE_MIXIN.isEmpty();
3031
}
3132

32-
static void postMixin(String name, ClassNode cn) {
33+
static boolean postMixin(String name, ClassNode cn) {
3334
POST_MIXIN.forEach(callback -> callback.transform(name, cn));
35+
return POST_MIXIN.isEmpty();
3436
}
3537
}
3638

src/main/java/org/spongepowered/asm/mixin/transformer/HackedMixinProcessor.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ public class HackedMixinProcessor extends MixinProcessor {
1515

1616
@Override
1717
synchronized boolean applyMixins(MixinEnvironment environment, String name, ClassNode targetClassNode) {
18-
Mixout.TransformEvent.preMixin(name, targetClassNode);
19-
boolean applied = super.applyMixins(environment, name, targetClassNode);
20-
Mixout.TransformEvent.postMixin(name, targetClassNode);
21-
return applied;
18+
boolean shouldApply;
19+
20+
shouldApply = Mixout.TransformEvent.preMixin(name, targetClassNode);
21+
shouldApply |= super.applyMixins(environment, name, targetClassNode);
22+
shouldApply |= Mixout.TransformEvent.postMixin(name, targetClassNode);
23+
24+
return shouldApply;
2225
}
2326
}

src/main/resources/quilt.mod.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"id": "quilt_loader",
2626
"versions": ">=0.17.0-"
2727
},
28-
"quilted_fabric_api",
2928
"minecraft"
3029
],
3130
"language_adapters": {

0 commit comments

Comments
 (0)