forked from SteffanDonal/BeatSaber-SaberTailor
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed unpause unintentionally enabling saber trails again
- Loading branch information
1 parent
8296bf8
commit ab3c06a
Showing
7 changed files
with
28 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using HarmonyLib; | ||
using SaberTailor.Settings; | ||
|
||
namespace SaberTailor.HarmonyPatches.Patches | ||
{ | ||
[HarmonyPatch(typeof(SaberTrailRenderer))] | ||
[HarmonyPatch("OnEnable")] | ||
internal class SaberTrailRendererOnEnable | ||
{ | ||
private static void Postfix(SaberTrailRenderer __instance) | ||
{ | ||
if (Configuration.Trail.TweakEnabled && !Configuration.Trail.TrailEnabled) | ||
{ | ||
__instance.enabled = false; | ||
Logger.log.Info("Successfully disabled trails!"); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters