mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-03-01 03:30:04 +00:00
Fixed silly bug that broke non-static invokable actions
This commit is contained in:
parent
afe5518c13
commit
73df048341
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user