require overright

This commit is contained in:
Cooldude2606 committed 2019-08-09 16:44:27 +01:00
1 parent 6bab92f87f
commit 129b39bbb9
2 files changed
+12

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
local loaded = _G.package.loaded
local raw_require = require
function require(path)
return loaded[path] or error('Can only require files at runtime that have been required in the control stage.', 2)
end
return raw_require