From 3eeeefb36f1525702ef9763f35d34874c1329bda Mon Sep 17 00:00:00 2001 From: Proddy3 Date: Sun, 17 Feb 2019 00:17:14 +0000 Subject: [PATCH] Update HandleCharModel.lua Fixed a typo --- Randomiser/Resources/HandleCharModel.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Randomiser/Resources/HandleCharModel.lua b/Randomiser/Resources/HandleCharModel.lua index 74fdf10..c3f114a 100644 --- a/Randomiser/Resources/HandleCharModel.lua +++ b/Randomiser/Resources/HandleCharModel.lua @@ -1,7 +1,7 @@ local Path = GetPath() if SettingRandomCharacter and OrigChar and (Path:match("art/chars/" .. OrigChar .. "_m%.p3d") or Path:match("art/chars/" .. OrigChar:sub(1,1) .. "_.-_m%.p3d")) then - local Original = ReadFile("GameData/" .. Path) + local Original = ReadFile("/GameData/" .. Path) local ReplacePath = "/GameData/art/chars/" .. GetRandomFromTbl(RandomCharP3DPool, false) .. ".p3d" local Replace = ReadFile(ReplacePath) @@ -19,7 +19,7 @@ else model = model:sub(1, 6) end if Path:match("art/chars/" .. model .. "_m%.p3d") then - local Original = ReadFile("GameData/" .. Path) + local Original = ReadFile("/GameData/" .. Path) local ReplacePath = "/GameData/art/chars/" .. GetRandomFromTbl(RandomCharP3DPool, false) .. ".p3d" local Replace = ReadFile(ReplacePath) @@ -39,7 +39,7 @@ else model = model:sub(1, 6) end if Path:match("art/chars/" .. model .. "_m%.p3d") then - local Original = ReadFile("GameData/" .. Path) + local Original = ReadFile("/GameData/" .. Path) local ReplacePath = "/GameData/art/chars/" .. GetRandomFromTbl(RandomCharP3DPool, false) .. ".p3d" local Replace = ReadFile(ReplacePath) @@ -60,7 +60,7 @@ else model = model:sub(1, 6) end if Path:match("art/chars/" .. model .. "_m%.p3d") then - local Original = ReadFile("GameData/" .. Path) + local Original = ReadFile("/GameData/" .. Path) local ReplacePath = "/GameData/art/chars/" .. GetRandomFromTbl(RandomCharP3DPool, false) .. ".p3d" local Replace = ReadFile(ReplacePath)