Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Fix #11 by enabling the collider after Show
Browse files Browse the repository at this point in the history
  • Loading branch information
TRSasasusu committed Jun 15, 2023
1 parent 95d3143 commit e62a056
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions TranslationForTheOutsider/IssueOfTheOutsiderPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,19 @@ public static bool NomaiRemoteCameraStreaming_NomaiRemoteCameraPlatformIDToScene
return true;
}
// ### End: Deal with https://github.com/TRSasasusu/TranslationForTheOutsider/issues/9 ###

// Deal with https://github.com/TRSasasusu/TranslationForTheOutsider/issues/11
[HarmonyPostfix]
[HarmonyPatch(typeof(NomaiWallText), nameof(NomaiWallText.Show))]
public static void NomaiWallText_Show_Postfix(NomaiWallText __instance) {
if(!TranslationForTheOutsider.Instance.IsFixIssuesOfTheOutsider) {
return;
}

if(__instance.name == "Text_YarrowOtherSide") {
__instance.GetComponent<BoxCollider>().enabled = true;
TranslationForTheOutsider.Instance.Log($"Fixed the collider of {__instance.name}.");
}
}
}
}

0 comments on commit e62a056

Please sign in to comment.