2023-03-18 13:30:22 -04:00

18 lines
496 B
C#

using HarmonyLib;
using OWML.Logging;
namespace NewHorizons.Patches.StreamingPatches
{
[HarmonyPatch(typeof(UnityLogger))]
public static class UnityLoggerPatches
{
[HarmonyPrefix]
[HarmonyPatch("OnLogMessageReceived")]
public static bool UnityLogger_OnLogMessageReceived(string message)
{
// Filter out goofy error that doesn't actually break anything
return !message.EndsWith(") is out of bounds (size=0)");
}
}
}