diff options
Diffstat (limited to 'gamemode/nrequire.lua')
| -rw-r--r-- | gamemode/nrequire.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gamemode/nrequire.lua b/gamemode/nrequire.lua index 3fbe9d7..d704907 100644 --- a/gamemode/nrequire.lua +++ b/gamemode/nrequire.lua @@ -139,6 +139,10 @@ function nrequire(req,...) --Actually run the file pathstack[#pathstack + 1] = tpath[1] local filetxt = file.Read(tpath[1],tpath[2]) + if #filetxt == 0 then + pathstack[#pathstack] = nil + return + end local filetime = file.Time(tpath[1],tpath[2]) local filefunc = CompileString(filetxt,tpath[1],false) if type(filefunc) ~= "function" then |
