From 4fa52406a0d9640a37ac11c91e30a4f94146e40f Mon Sep 17 00:00:00 2001 From: EvilFactory Date: Sun, 10 Dec 2023 12:29:11 -0300 Subject: [PATCH] Turn the acl unloading warning into just a debug message --- .../SharedSource/LuaCs/Plugins/CsPackageManager.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Plugins/CsPackageManager.cs b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Plugins/CsPackageManager.cs index 84784a161..780e5547f 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Plugins/CsPackageManager.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Plugins/CsPackageManager.cs @@ -309,16 +309,15 @@ public sealed class CsPackageManager : IDisposable _assemblyManager.FinalizeDispose(); //Update lists if (_assemblyManager.IsCurrentlyUnloading) { - ModUtils.Logging.PrintWarning($"WARNING: Some mods from a previous session (lobby) are still loaded! This may result in undefined behaviour!\nIf you notice any odd behaviour that only occurs after multiple lobbies, please restart your game."); - ModUtils.Logging.PrintWarning($"The below ACLs are still unloading:"); + ModUtils.Logging.PrintMessage($"The below ACLs are still unloading:"); foreach (var wkref in _assemblyManager.StillUnloadingACLs) { if (wkref.TryGetTarget(out var tgt)) { - ModUtils.Logging.PrintWarning($"ACL Name: {tgt.FriendlyName}"); + ModUtils.Logging.PrintMessage($"ACL Name: {tgt.FriendlyName}"); foreach (Assembly assembly in tgt.Assemblies) { - ModUtils.Logging.PrintWarning($"-- Assembly: {assembly.GetName()}"); + ModUtils.Logging.PrintMessage($"-- Assembly: {assembly.GetName()}"); } } }