mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
LegacyContentMitigation: prepare for submission
This commit is contained in:
parent
94515efbe3
commit
d4dc8fba44
4 changed files with 46 additions and 2 deletions
|
@ -9,6 +9,7 @@ using ABI.CCK.Components;
|
|||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace NAK.LegacyContentMitigation.Patches;
|
||||
|
||||
|
@ -27,8 +28,10 @@ internal static class SceneLoaded_Patches
|
|||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(SceneLoaded), nameof(SceneLoaded.OnSceneLoadedHandleJob))]
|
||||
private static void Prefix_SceneLoaded_OnSceneLoadedHandleJob()
|
||||
private static void Prefix_SceneLoaded_OnSceneLoadedHandleJob(Scene scene, LoadSceneMode mode)
|
||||
{
|
||||
if (mode == LoadSceneMode.Additive) return;
|
||||
|
||||
if (!ModSettings.EntryAutoForLegacyWorlds.Value)
|
||||
{
|
||||
LegacyContentMitigationMod.Logger.Msg("LegacyContentMitigationMod is disabled.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue