nicer error message for when you already have cl lua installed, but you try to install it again

This commit is contained in:
Evil Factory
2022-03-24 16:15:51 -03:00
parent 68124fa8a5
commit 469abd6e86
@@ -1254,7 +1254,7 @@ namespace Barotrauma
GameMain.Lua.Initialize();
}));
commands.Add(new Command("install_cl_lua", "Installs client-side lua into your client.", (string[] args) =>
commands.Add(new Command("install_cl_lua", "Installs client-Side Lua into your client.", (string[] args) =>
{
if (!File.Exists("Mods/LuaForBarotrauma/clientside_files.zip"))
{
@@ -1279,7 +1279,7 @@ namespace Barotrauma
}
catch (Exception e)
{
GameMain.Lua.HandleLuaException(e);
GameMain.Lua.PrintError("You seem to already have Client Side Lua installed, if you are trying to reinstall, make sure uninstall it first (mainmenu button located top left).");
return;
}