From 1f825965826e88abb38da222ed1d8336afb7e5b8 Mon Sep 17 00:00:00 2001 From: xerxes-at <5236639+xerxes-at@users.noreply.github.com> Date: Tue, 7 May 2024 16:29:37 +0200 Subject: [PATCH] Fix increment / decrement switch. (#325) * Fix increment / decrement switch. Replace 'up' with 'increment' as it got renamed on the GSC part some time ago. --- Plugins/ScriptPlugins/GameInterface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/ScriptPlugins/GameInterface.js b/Plugins/ScriptPlugins/GameInterface.js index 19cf64db..ab2b3a2a 100644 --- a/Plugins/ScriptPlugins/GameInterface.js +++ b/Plugins/ScriptPlugins/GameInterface.js @@ -298,7 +298,7 @@ const plugin = { const parsedValue = parseInt(event.data['value']); const key = event.data['key'].toString(); if (!isNaN(parsedValue)) { - event.data['direction'] = 'up' ? + event.data['direction'] == 'increment' ? (await metaService.incrementPersistentMeta(key, parsedValue, clientId, token)).result : (await metaService.decrementPersistentMeta(key, parsedValue, clientId, token)).result; }