From 60e9ce1b680e2fe23a14c6e5e72254799423b266 Mon Sep 17 00:00:00 2001 From: Wojbie Date: Sun, 4 Jun 2017 14:51:49 +0200 Subject: [PATCH] Fix to redirection game. Was not testing for correct file type. Game ended after first lvl cause it was looking from wrong name of file. --- .../computercraft/lua/rom/programs/fun/advanced/redirection.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua index a1b7fd8f7..8c22c58a3 100644 --- a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua +++ b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua @@ -614,7 +614,7 @@ local function startG(LevelN) elseif isExit == "retry" then return LevelN elseif fExit == "yes" then - if fs.exists( fs.getDir( shell.getRunningProgram() ) .. "/levels/" .. tostring(LevelN + 1) ) then + if fs.exists( fs.getDir( shell.getRunningProgram() ) .. "/levels/" .. tostring(LevelN + 1) .. ".dat" ) then return LevelN + 1 else return nil