mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
minor fix of caching
This commit is contained in:
parent
e279e4ea50
commit
8e907b6d98
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ local function execute(str, args, ...)
|
|||
|
||||
local comp = compiler(str, expArgs)
|
||||
|
||||
cache[argsHash] = { }
|
||||
if not cache[argsHash] then cache[argsHash] = { } end
|
||||
|
||||
cache[argsHash][str] = comp
|
||||
|
||||
|
|
@ -58,4 +58,4 @@ local function execute(str, args, ...)
|
|||
end
|
||||
end
|
||||
|
||||
return execute
|
||||
return execute
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue