Skip to content

Commit e9cfdcf

Browse files
committed
fix: #7 added RefreshGridSlotReferences to BackpackSlotModified to clear cached items rendering
1 parent 42035a3 commit e9cfdcf

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ Feature (F) and decision (D) numbers refer to [FEATURES.md](FEATURES.md).
66

77
## Unreleased
88

9-
The 0.5.0 development line makes Vintage Story's offhand hunger penalty
10-
configurable and makes immersive carrying visible on the player.
9+
The 0.5.1 patch fixes stale item rendering in equipped-bag windows.
1110

12-
**Clients and servers must update together.** The network protocol moves to
11+
### Fixed
12+
13+
- Equipped-bag windows no longer render an occupied slot as empty, or keep an
14+
obsolete item name and quantity after its content changes.
15+
16+
## [v0.5.0](https://github.com/stinowdev/vs-burdened/releases/tag/v0.5.0)
17+
18+
Version 0.5.0 made Vintage Story's offhand hunger penalty configurable and made
19+
immersive carrying visible on the player.
20+
21+
**Clients and servers must update together.** The network protocol moved to
1322
version 1.4.0.
1423

1524
### Added
@@ -22,7 +31,7 @@ version 1.4.0.
2231

2332
### Changed
2433

25-
- The network protocol moves to version 1.4.0 because the config sync carries
34+
- The network protocol moved to version 1.4.0 because the config sync carries
2635
`OffhandHungerPenalty`.
2736

2837
### Fixed

src/Client/GuiDialogEquippedBag.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ private void OnBackpackSlotModified(int slotId)
151151
}
152152

153153
// The view has independent dirty state, so one dialog cannot consume or
154-
// reinterpret another dialog's (or the hotbar's) dirty slot ids.
154+
// reinterpret another dialog's (or the hotbar's) dirty slot ids.
155+
// A bag content update may also replace ItemSlotBagContent objects.
156+
RefreshGridSlotReferences();
155157
viewInventory.MarkAllDirty();
156158
}
157159

0 commit comments

Comments
 (0)