Skip to content

Commit 9583ac8

Browse files
committed
feat: v
1 parent 45338b0 commit 9583ac8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

extensions/extension/src/main/java/app/revanced/extension/customfilters/TintFieldHook.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,13 @@ public static void installCustomTintSlot(Object table) {
151151

152152
Class<?> actorClass = Class.forName("com.badlogic.gdx.scenes.scene2d.Actor", false, cl);
153153

154-
// FIX: Use getDeclaredMethod() since registerWidget is protected
155-
Method registerWidget = figureFiltersClass.getDeclaredMethod("registerWidget", actorClass, int.class);
154+
// FIX: Look for registerWidget in the superclass (ToolTable)
155+
Class<?> toolTableClass = Class.forName(
156+
"org.fortheloss.sticknodes.animationscreen.modules.tooltables.ToolTable",
157+
false, cl
158+
);
159+
160+
Method registerWidget = toolTableClass.getDeclaredMethod("registerWidget", actorClass, int.class);
156161
registerWidget.setAccessible(true); // Make protected method accessible
157162

158163
registerWidget.invoke(table, fieldInstance, 108); // ID 108 (0x6C)

0 commit comments

Comments
 (0)