File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace MLAPI . Configuration
13
13
{
14
+ [ Serializable ]
15
+ internal class NullableBoolSerializable
16
+ {
17
+ [ SerializeField ]
18
+ public ulong Value ;
19
+ }
20
+
14
21
/// <summary>
15
22
/// The configuration object used to start server, client and hosts
16
23
/// </summary>
@@ -48,7 +55,7 @@ public class NetworkConfig
48
55
/// The default player prefab
49
56
/// </summary>
50
57
[ SerializeField ]
51
- internal ulong ? PlayerPrefabHash ;
58
+ internal NullableBoolSerializable PlayerPrefabHash ;
52
59
/// <summary>
53
60
/// Whether or not a player object should be created by default. This value can be overriden on a case by case basis with ConnectionApproval.
54
61
/// </summary>
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ private void OnValidate()
303
303
}
304
304
else
305
305
{
306
- NetworkConfig . PlayerPrefabHash = prefab . Hash ;
306
+ NetworkConfig . PlayerPrefabHash . Value = prefab . Hash ;
307
307
}
308
308
}
309
309
You can’t perform that action at this time.
0 commit comments