mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-13 11:40:29 +00:00
Merge pull request #266 from Wilma456/leveldat
Add .dat extension to all redirection levels
This commit is contained in:
commit
6c85ca071f
2
src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua
Executable file → Normal file
2
src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua
Executable file → Normal file
@ -174,7 +174,7 @@ local function loadLevel(nNum)
|
||||
sLevelTitle = "Level "..nNum
|
||||
if nNum == nil then return error("nNum == nil") end
|
||||
local sDir = fs.getDir( shell.getRunningProgram() )
|
||||
local sLevelD = sDir .. "/levels/" .. tostring(nNum)
|
||||
local sLevelD = sDir .. "/levels/" .. tostring(nNum)..".dat"
|
||||
if not ( fs.exists(sLevelD) or fs.isDir(sLevelD) ) then return error("Level Not Exists : "..sLevelD) end
|
||||
fLevel = fs.open(sLevelD,"r")
|
||||
local Line = 0
|
||||
|
Loading…
Reference in New Issue
Block a user