summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/vm/node.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index 58784d24..2e408128 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -4,9 +4,10 @@ local vm = require 'vm.vm'
local ws = require 'workspace.workspace'
local guide = require 'parser.guide'
local timer = require 'timer'
+local util = require 'utility'
---@type table<vm.object, vm.node>
-vm.nodeCache = {}
+vm.nodeCache = setmetatable({}, util.MODE_K)
---@alias vm.node.object vm.object | vm.global