CCU was ignoring this anyway

This commit is contained in:
Nick 2022-10-03 21:40:59 -04:00
parent ab6e0074e7
commit 2fc0c7924f

View File

@ -11,9 +11,6 @@ namespace NewHorizons.Patches.CameraPatches
[HarmonyPatch(typeof(NomaiRemoteCamera), nameof(NomaiRemoteCamera.Awake))] [HarmonyPatch(typeof(NomaiRemoteCamera), nameof(NomaiRemoteCamera.Awake))]
public static void NomaiRemoteCamera_Awake(NomaiRemoteCamera __instance) public static void NomaiRemoteCamera_Awake(NomaiRemoteCamera __instance)
{ {
// Ensures that if the player is visible from the remote camera they look normal
CommonCameraHandler.RegisterCustomCamera(__instance._camera);
// These layers were left on because it doesnt come up in base game (Dreamworld is inactive, player is far away) // These layers were left on because it doesnt come up in base game (Dreamworld is inactive, player is far away)
__instance._camera.mainCamera.cullingMask &= ~(1 << LayerMask.NameToLayer("DreamSimulation")); __instance._camera.mainCamera.cullingMask &= ~(1 << LayerMask.NameToLayer("DreamSimulation"));
__instance._camera.mainCamera.cullingMask &= ~(1 <<LayerMask.NameToLayer("UI")); __instance._camera.mainCamera.cullingMask &= ~(1 <<LayerMask.NameToLayer("UI"));