From 469abd6e868836e3151a5fb641a7ee31f6c6a997 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Thu, 24 Mar 2022 16:15:51 -0300 Subject: [PATCH] nicer error message for when you already have cl lua installed, but you try to install it again --- Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs b/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs index 1969043d6..fc57c3b1d 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs @@ -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; }