Skip to content
Snippets Groups Projects
Commit a80b51d1 authored by pg98's avatar pg98
Browse files

fix NullReferenceExceptions while initializing MultiplayerColorManager

parent 45425900
Branches
Tags 1.0.2
No related merge requests found
......@@ -8,6 +8,18 @@ namespace MultiplayerColors {
Color.red, Color.green, false,
Color.red, Color.green, Color.red);
public MultiplayerColorManager() {
var dummyColor = ScriptableObject.CreateInstance<SimpleColorSO>();
_saberAColor = dummyColor;
_saberBColor = dummyColor;
_environmentColor0 = dummyColor;
_environmentColor1 = dummyColor;
_environmentColor0Boost = dummyColor;
_environmentColor1Boost = dummyColor;
_obstaclesColor = dummyColor;
}
public override void Awake() {
if (_colorScheme == null) _colorScheme = DefaultColorScheme;
}
......
......@@ -76,6 +76,10 @@
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\Main.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HMLib">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\HMLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="IPA.Loader">
<HintPath>$(BeatSaberDir)\Beat Saber_Data\Managed\IPA.Loader.dll</HintPath>
<Private>False</Private>
......
......@@ -9,5 +9,5 @@ using System.Runtime.InteropServices;
[assembly: Guid("7e8f3dda-fe61-4a71-9974-560fcad31286")]
[assembly: AssemblyCulture("en-US")]
[assembly: AssemblyVersion("1.0.1")]
[assembly: AssemblyFileVersion("1.0.1")]
[assembly: AssemblyVersion("1.0.2")]
[assembly: AssemblyFileVersion("1.0.2")]
......@@ -3,7 +3,7 @@
"id": "MultiplayerColors",
"name": "MultiplayerColors",
"author": "pg12",
"version": "1.0.1",
"version": "1.0.2",
"description": "Show your color scheme to other players",
"gameVersion": "1.13.0",
"dependsOn": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment