mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-16 02:04:48 +00:00
refactor: modernize class info lookup
This commit is contained in:
1 parent
99ee689158
commit
fa0bd01ab2
3 files changed
+25
-12
No files matched your search
@@ -191,7 +191,7 @@ final class ClassInfoLookup {
|
||||
|
||||
// Preserve the compiler's argument-count indexing, including its behavior for wide stack values.
|
||||
StackEntry receiver = stack.peek(Type.getType(call.desc).getArgumentTypes().length);
|
||||
if (!(receiver instanceof Load) || !(((Load) receiver).e() instanceof This)) return Option.empty();
|
||||
if (!(receiver instanceof Load load) || !(load.e() instanceof This)) return Option.empty();
|
||||
|
||||
return ASMMixinCompiler$.MODULE$.getClassInfo(stack.owner().getInternalName()).superClass()
|
||||
.flatMap(new AbstractFunction1<ClassInfo, Option<MethodInfo>>() {
|
||||
|
||||
Reference in new issue
Block a user