Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Feb 19, 2023
1 parent 53bd666 commit a6fbfe7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PartyPlanner/Models/EventType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class EventType
[JsonProperty("attachments")]
public string[] Attachments { get; set; } = Array.Empty<string>();
[JsonProperty("locationData")]
public EventLocationData LocationData { get; set; }
public EventLocationData? LocationData { get; set; }
}

public class EventLocationData
Expand Down
2 changes: 1 addition & 1 deletion PartyPlanner/PartyPlanner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Authors>Zhyra</Authors>
<Company></Company>
<Version>1.5.0</Version>
<Version>1.5.1</Version>
<Description>PartyVerse.app, directly on your client!</Description>
<Copyright>MIT</Copyright>
<PackageProjectUrl>https://github.com/edg-l/PartyPlanner</PackageProjectUrl>
Expand Down
1 change: 1 addition & 0 deletions PartyPlanner/PluginUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public async void UpdateEvents()
lastUpdate = DateTime.Now;
foreach (var ev in partyVerseEvents)
{
if(ev.LocationData == null || ev.LocationData.DataCenter == null) continue;
var key = ev.LocationData.DataCenter.Id;

if (!eventsByDc.ContainsKey(key))
Expand Down

0 comments on commit a6fbfe7

Please sign in to comment.