Fixed silly bug that broke non-static invokable actions

This commit is contained in:
Brendan Robert 2023-08-04 22:24:50 -05:00
parent afe5518c13
commit 73df048341

View File

@ -513,13 +513,13 @@ public class Configuration implements Reconfigurable {
InvokableAction action = registry.getStaticMethodInfo(name);
if (action != null) {
for (String code : node.hotkeys.get(name)) {
Keyboard.registerInvokableAction(action, name, registry.getStaticFunction(name), code);
Keyboard.registerInvokableAction(action, node.subject, registry.getStaticFunction(name), code);
}
}
action = registry.getInstanceMethodInfo(name);
if (action != null) {
for (String code : node.hotkeys.get(name)) {
Keyboard.registerInvokableAction(action, name, registry.getInstanceFunction(name), code);
Keyboard.registerInvokableAction(action, node.subject, registry.getInstanceFunction(name), code);
}
}
});