Skip to content

Commit

Permalink
fix LIV walls not being returned to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
Pespiri committed Mar 22, 2022
1 parent 564e497 commit 610ec85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion TransparentWall/Gameplay/Modifications/LIVWalls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public IEnumerator<WaitForEndOfFrame> ApplyGameCoreModifications()
{
LayersToMask.ForEach(i =>
{
l.spectatorLayerMask|= 1 << i;
l.spectatorLayerMask = Configuration.DisableForLivCamera
? l.spectatorLayerMask | (1 << i)
: l.spectatorLayerMask & ~(1 << i);
});
});
}
Expand Down
2 changes: 0 additions & 2 deletions TransparentWall/Gameplay/TransparentWalls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ public class TransparentWalls : MonoBehaviour
[SuppressMessage("CodeQuality", "IDE0051:Remove unused private members", Justification = "Unity calls this")]
private void Start()
{
if (!Configuration.DisableForLivCamera) return;

if (Resources.FindObjectsOfTypeAll<MoveBackWall>().Any())
{
Configuration.MoveBackLayer = Resources.FindObjectsOfTypeAll<MoveBackWall>().First().gameObject.layer;
Expand Down
4 changes: 2 additions & 2 deletions TransparentWall/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.9.1.0")]
[assembly: AssemblyFileVersion("1.9.1.0")]
[assembly: AssemblyVersion("1.9.2.0")]
[assembly: AssemblyFileVersion("1.9.2.0")]
2 changes: 1 addition & 1 deletion TransparentWall/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"icon": "TransparentWall.Resources.icon.png",
"id": "TransparentWall",
"name": "TransparentWall",
"version": "1.9.1",
"version": "1.9.2",
"dependsOn": {
"BSIPA": "^4.2.2",
"BeatSaberMarkupLanguage": "^1.6.3",
Expand Down

0 comments on commit 610ec85

Please sign in to comment.