From 73a687e358a155d2de7c67c4158135c74dc57980 Mon Sep 17 00:00:00 2001 From: David Delassus Date: Mon, 12 Oct 2020 17:10:51 +0200 Subject: [PATCH] fix: enable default modules The `SoftSandbox` preset does not allow `require`, `load`, `loadfile`, and `dofile` functions to be used. --- LuaVM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaVM.cs b/LuaVM.cs index ebc38e3..0d095df 100644 --- a/LuaVM.cs +++ b/LuaVM.cs @@ -66,7 +66,7 @@ public LuaVM() public LuaVM(VMSettings vmSettings) { m_LuaScript = - new Script(CoreModules.Preset_SoftSandbox) + new Script(CoreModules.Preset_Default) { Options = {