File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 4
4
<TargetFramework >net6.0</TargetFramework >
5
5
<AssemblyName >NobetaTrainer</AssemblyName >
6
6
<Description >Little Witch Nobeta speedrun Trainer tool</Description >
7
- <Version >1.4.1 </Version >
7
+ <Version >1.4.2 </Version >
8
8
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
9
9
<LangVersion >latest</LangVersion >
10
10
<RestoreAdditionalProjectSources >
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public static class OtherPatches
26
26
private static float _initialLightIntensity ;
27
27
private static Color _initialLightColor ;
28
28
private static LightShadows _initialShadows ;
29
+ private static bool _initialLightEnabled ;
29
30
30
31
public static void RemoveLava ( )
31
32
{
@@ -70,6 +71,7 @@ public static void UpdateBrightMode()
70
71
var lightBakingOutput = _light . bakingOutput ;
71
72
if ( BrightMode )
72
73
{
74
+ _light . enabled = true ;
73
75
_light . shadows = LightShadows . None ;
74
76
lightBakingOutput . lightmapBakeType = LightmapBakeType . Realtime ;
75
77
@@ -78,6 +80,7 @@ public static void UpdateBrightMode()
78
80
}
79
81
else
80
82
{
83
+ _light . enabled = _initialLightEnabled ;
81
84
_light . shadows = _initialShadows ;
82
85
lightBakingOutput . lightmapBakeType = LightmapBakeType . Mixed ;
83
86
@@ -125,6 +128,7 @@ private static void EnterScenePostfix()
125
128
_initialShadows = _light . shadows ;
126
129
_initialLightColor = _light . color ;
127
130
_initialLightIntensity = _light . intensity ;
131
+ _initialLightEnabled = _light . enabled ;
128
132
129
133
UpdateBrightMode ( ) ;
130
134
}
You can’t perform that action at this time.
0 commit comments