Skip to content

Commit 317eae7

Browse files
Erik Bylundkirre-bylund
authored andcommitted
fix: Properly parse is_public when updating storage
1 parent 41e4784 commit 317eae7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Runtime/Game/Requests/PersitentPlayerStorageRequest.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using LootLocker.Requests;
33
using System;
4+
using LLlibs.ZeroDepJson;
45

56
namespace LootLocker.Requests
67
{
@@ -36,6 +37,12 @@ public class LootLockerPayload
3637
public string key { get; set; }
3738
public string value { get; set; }
3839
public int order { get; set; }
40+
41+
#if LOOTLOCKER_USE_NEWTONSOFTJSON
42+
[JsonProperty("public")]
43+
#else
44+
[Json(Name = "public")]
45+
#endif
3946
public bool is_public { get; set; }
4047
}
4148
}

0 commit comments

Comments
 (0)