Skip to content

Commit

Permalink
Fixed SmallInteract showing on loading screens. Fixed kvstore not inv…
Browse files Browse the repository at this point in the history
…alidating when new setting values were added.
  • Loading branch information
dlamkins committed Dec 15, 2023
1 parent a69dcb7 commit 3fd0d00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion State/KvStates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private async Task FlushKv(GameTime gameTime) {
}

public string UpsertValue(string key, string value) {
bool updated = false;
bool updated = !_kvStore.ContainsKey(key);

_kvStore.AddOrUpdate(key, value, (_, existingVal) => {
if (existingVal != value) {
Expand Down
1 change: 1 addition & 0 deletions UI/Controls/SmallInteract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public override void DoUpdate(GameTime gameTime) {
}

protected override void Paint(SpriteBatch spriteBatch, Rectangle bounds) {
if (!GameService.GameIntegration.Gw2Instance.IsInGame) return;
if (!_packState.UserConfiguration.PackAllowInteractIcon.Value) return;

if (_activePathingEntity == null || _activePathingEntity.IsFiltered(EntityRenderTarget.World)) return;
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Pathing",
"version": "1.5.0",
"version": "1.5.1",
"namespace": "bh.community.pathing",
"package": "Pathing.dll",
"manifest_version": 1,
Expand Down

0 comments on commit 3fd0d00

Please sign in to comment.