Fix away-enabled causing unsynchronised behavior

This commit is contained in:
Armored-Dragon 2023-09-15 14:40:50 -05:00
parent e7277af238
commit 1d1305a668

View file

@ -191,6 +191,12 @@ by rampa3 (https://github.com/rampa3) and vegaslon (https://github.com/vegaslon)
}
}
Messages.messageReceived.connect(onMessageReceived);
function onMessageReceived(channel, message, sender, localOnly) {
if (channel === "Hifi-Away-Enable")
if (message === 'enable') mouseLookOn();
}
Script.scriptEnding.connect(onScriptEnding);
function onScriptEnding() {