From 6b63c290eab022f1ac6333cebfe472121530f9b4 Mon Sep 17 00:00:00 2001 From: Johann Kraus <56100605+JericoFX@users.noreply.github.com> Date: Sun, 11 May 2025 23:50:48 -0300 Subject: [PATCH] Add the modules to the env This will allow to the others resources to use the modules from the ENV table. --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 9ecdcc6..8db2673 100644 --- a/init.lua +++ b/init.lua @@ -21,7 +21,8 @@ function Bridge.RegisterModule(moduleName, moduleTable) print("^2 Registering module:", moduleName, "^0") end Bridge[moduleName] = wrappedModule - + _ENV[moduleName] = wrappedModule -- Add to the ENV table the modules so is more easy and safe to call from inside + _ENV.Bridge = Bridge -- Add the bridge too to the _ENV exports(moduleName, function() return wrappedModule