diff --git a/src/game/game.js b/src/game/game.js index 224a3e2b..8a323a3c 100644 --- a/src/game/game.js +++ b/src/game/game.js @@ -429,13 +429,16 @@ runCodeCache[userId].memory._parsed = null; } + this.Memory = runCodeCache[userId].memory._parsed; + + return runCodeCache[userId].memory._parsed; + }, + set(memory) { Object.defineProperty(runCodeCache[userId].globals, 'Memory', { configurable: true, enumerable: true, - value: runCodeCache[userId].memory._parsed + value: memory }); - - return runCodeCache[userId].memory._parsed; } });