bump mod loader versions

This commit is contained in:
Sinai 2022-02-24 19:26:01 +11:00
parent fdefc3d567
commit 2f0876466c
4 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@ -1,5 +1,4 @@
#if MONO
using System;
using UnityEngine;
namespace UnityExplorer.Runtime

View File

@ -25,10 +25,10 @@ namespace UnityExplorer.Runtime
// In Unity 2020 they introduced "Canvas.renderingDisplaySize".
// If you try to get the value on a Canvas which has a renderMode value of WorldSpace and no worldCamera set,
// the game will Crash when Unity tries to read from a null ptr (I think).
// the game will Crash (I think from Unity trying to read from null ptr).
[HarmonyPatch(typeof(Canvas), "renderingDisplaySize", MethodType.Getter)]
[HarmonyPrefix]
internal static void Prefix(Canvas __instance)
internal static void Prefix_Canvas_renderingDisplaySize(Canvas __instance)
{
if (__instance.renderMode == RenderMode.WorldSpace && !__instance.worldCamera)
throw new InvalidOperationException(