mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-28 00:55:37 +00:00
Merge remote-tracking branch 'FabricMC/main'
This commit is contained in:
commit
8bd1a375e2
3 files changed
+6
-3
No files matched your search
@@ -10,6 +10,8 @@
|
||||
public protected *;
|
||||
}
|
||||
|
||||
-keep class module-info
|
||||
|
||||
-keepclassmembers enum ** {
|
||||
public static **[] values();
|
||||
public static ** valueOf(java.lang.String);
|
||||
|
||||
@@ -750,6 +750,8 @@ public class CallbackInjector extends Injector {
|
||||
if (store) {
|
||||
callback.target.addLocalVariable(this.callbackInfoVar, "callbackInfo" + this.callbackInfoVar, "L" + this.callbackInfoClass + ";");
|
||||
callback.add(new VarInsnNode(Opcodes.ASTORE, this.callbackInfoVar), false, false, head);
|
||||
} else if (callback.isAtReturn) {
|
||||
callback.target.addLocalVariable(this.callbackInfoVar, "returnValue" + this.callbackInfoVar, callback.target.returnType.getDescriptor());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -875,9 +875,8 @@ public class MixinTargetContext extends ClassContext implements IMixinContext {
|
||||
}
|
||||
|
||||
private void updateBinding(MethodNode method, MemberRef methodRef, Traversal traversal) {
|
||||
if (Constants.CTOR.equals(method.name)
|
||||
|| methodRef.getOwner().equals(this.getTarget().getClassRef())
|
||||
|| this.getTarget().getClassRef().startsWith("<")) {
|
||||
if (Constants.CTOR.equals(methodRef.getName())
|
||||
|| methodRef.getOwner().equals(this.getTarget().getClassRef())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user