Notes about difficulties of DI for scripts

This commit is contained in:
P0nk
2023-03-18 15:42:34 +01:00
parent 02c1fe46f3
commit 290bf78db3
4 changed files with 10 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ var commands;
function writeHeavenMSCommands() {
const CommandsExecutor = Java.type('client.command.CommandsExecutor');
commands = CommandsExecutor.getInstance().getGmCommands();
commands = CommandsExecutor.getInstance().getGmCommands(); // TODO: fix. CommandsExecutor is now injected rather than being a singleton, so this does not work anymore.
}
function start() {