summaryrefslogtreecommitdiff
path: root/server/src/vm/global.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/global.lua')
-rw-r--r--server/src/vm/global.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/vm/global.lua b/server/src/vm/global.lua
index 4e368641..ba5da73a 100644
--- a/server/src/vm/global.lua
+++ b/server/src/vm/global.lua
@@ -6,11 +6,11 @@ return function (lsp)
local global = lsp and lsp.globalValue
if not global then
global = createValue('table')
- end
- for name, lib in pairs(library.global) do
- if not global:rawGet(name) then
- local value = libraryBuilder.value(lib)
- global:rawSet(name, value)
+ for name, lib in pairs(library.global) do
+ if not global:rawGet(name) then
+ local value = libraryBuilder.value(lib)
+ global:rawSet(name, value)
+ end
end
end
if lsp then