mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-26 19:43:05 +00:00
Revert method change which breaks MixinExtras
This commit is contained in:
1 parent
d5fc6623c0
commit
3104a5b0b5
2 files changed
+7
-5
No files matched your search
@@ -314,7 +314,7 @@ public abstract class InjectionInfo extends SpecialMethodInfo implements ISliceC
|
||||
activity.next("Validate Targets");
|
||||
this.targets.validate(this.expectedCallbackCount, this.requiredCallbackCount);
|
||||
activity.next("Parse Injection Points");
|
||||
this.parseInjectionPoints();
|
||||
this.parseInjectionPoints(this.injectionPointAnnotations);
|
||||
activity.next("Parse Injector");
|
||||
this.injector = this.parseInjector(this.annotation);
|
||||
activity.end();
|
||||
@@ -370,8 +370,8 @@ public abstract class InjectionInfo extends SpecialMethodInfo implements ISliceC
|
||||
this.targets.parse(selectors);
|
||||
}
|
||||
|
||||
protected void parseInjectionPoints() {
|
||||
this.injectionPoints.addAll(InjectionPoint.parse(this, this.injectionPointAnnotations));
|
||||
protected void parseInjectionPoints(List<AnnotationNode> ats) {
|
||||
this.injectionPoints.addAll(InjectionPoint.parse(this, ats));
|
||||
}
|
||||
|
||||
// stub
|
||||
|
||||
+4
-2
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package org.spongepowered.asm.mixin.injection.struct;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.objectweb.asm.Type;
|
||||
import org.objectweb.asm.tree.AnnotationNode;
|
||||
import org.objectweb.asm.tree.MethodNode;
|
||||
@@ -62,10 +64,10 @@ public class ModifyConstantInjectionInfo extends InjectionInfo {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void parseInjectionPoints() {
|
||||
protected void parseInjectionPoints(List<AnnotationNode> ats) {
|
||||
Type returnType = Type.getReturnType(this.method.desc);
|
||||
|
||||
for (AnnotationNode at : this.injectionPointAnnotations) {
|
||||
for (AnnotationNode at : ats) {
|
||||
this.injectionPoints.add(new BeforeConstant(this.getMixin(), at, returnType.getDescriptor()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user