mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
18 lines
496 B
C#
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)");
|
|
}
|
|
}
|
|
}
|