diff --git a/bindings/src/client/statics/Storage.js b/bindings/src/client/statics/Storage.js index 6b7aac7..9c57c54 100644 --- a/bindings/src/client/statics/Storage.js +++ b/bindings/src/client/statics/Storage.js @@ -9,10 +9,10 @@ class _Storage { } flush() { - for (const key in this.#dataCache) - alt.LocalStorage.set(key, this.#dataCache[key]); - for (const key in this.#sessionDataCache) - alt.setMeta(key, this.#sessionDataCache[key]); + for (const [key, value] of this.#dataCache) + alt.LocalStorage.set(key, value); + for (const [key, value] of this.#sessionDataCache) + alt.setMeta(key, value); alt.LocalStorage.save(); } diff --git a/package.json b/package.json index 883b0dc..856af34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ragemp-altv-bridge", - "version": "1.0.4", + "version": "1.0.5", "description": "RAGE Multiplayer alt:V Bridge. This package provides a bridge between RAGE Multiplayer and alt:V. It allows you to use RAGEMP code in alt:V.", "keywords": [ "ragemp",