mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-13 16:14:52 +09:00
Fixed a few inconsitancy
This commit is contained in:
1 parent
7ccf1083d2
commit
28c6610a20
4 files changed
+9
-12
No files matched your search
+1
-1
@@ -34,7 +34,7 @@ require_return_err = false -- Set to false when removing files; set to true for
|
||||
_require = require
|
||||
require = function(path)
|
||||
local _path = path
|
||||
if not string.sub(path,1) == '/' then path = '/'..path end
|
||||
if string.sub(path,1) ~= '/' then path = '/'..path end
|
||||
local _return = {pcall(_require,path)}
|
||||
if not table.remove(_return, 1) then
|
||||
local __return = {pcall(_require,'/..'..path)}
|
||||
|
||||
Reference in new issue
Block a user