Skip to content

Commit 1b790e7

Browse files
committed
#2 Minor corrections in Generator.cs to reset walls
1 parent 4d6e231 commit 1b790e7

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

AutoBS/Generator.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public GeneratorOutput Generate(EditableCBD eData, float bpm)
140140

141141
Plugin.LogDebug($"[Generator] Original Wall Count: {originalWallCount}");
142142

143+
WallGenerator._originalWalls.Clear();// Github Issue #2 Walls gone when using autolights
144+
WallGenerator._allWalls.Clear();
145+
143146
if (isEnabledWalls && (!Config.Instance.AllowCrouchWalls || !Config.Instance.AllowLeanWalls) || isEnabledWalls || Utils.IsEnabledArcs() || Utils.IsEnabledChains() || Config.Instance.Enable360fyer)// || Config.Instance.ShowGenerated90)
144147
WallGenerator.ResetWalls(eData); // reset for each song so variables clear out - do this even if wall generator is off since need to change walls for chains and rotations etc
145148

@@ -1020,8 +1023,7 @@ static int DirPolarity(NoteCutDirection d)
10201023
if (WallGenerator._allWalls.Count > 0) // Github Issue #2 Walls gone when using autolights
10211024
WallGenerator.FinalizeWallsToMap(eData);
10221025
}
1023-
1024-
if (WallGenerator._originalWalls.Count > 0 || WallGenerator._allWalls.Count > 0) // Github Issue #2 Walls gone when using autolights
1026+
else if (WallGenerator._originalWalls.Count > 0 || WallGenerator._allWalls.Count > 0) // Github Issue #2 Walls gone when using autolights
10251027
WallGenerator.FinalizeOriginalOnlyWallsToMap(eData);
10261028

10271029

AutoBS/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.1")]
36-
[assembly: AssemblyFileVersion("1.0.1")]
35+
[assembly: AssemblyVersion("1.0.2")]
36+
[assembly: AssemblyFileVersion("1.0.2")]

AutoBS/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"id": "AutoBS",
44
"name": "AutoBS",
55
"author": "Procedure1",
6-
"version": "1.0.1",
6+
"version": "1.0.2",
77
"description": "A Beat Saber mod for auto rotations, arcs, chains, lighting, walls and more.",
88
"gameVersion": "1.40.0",
99
"dependsOn": {

0 commit comments

Comments
 (0)