Skip to content

Commit 0678bcc

Browse files
ammodevCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent f49186f commit 0678bcc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • surf-api-bukkit/surf-api-bukkit-api/src/main/kotlin/dev/slne/surf/surfapi/bukkit/api/inventory/framework/view

surf-api-bukkit/surf-api-bukkit-api/src/main/kotlin/dev/slne/surf/surfapi/bukkit/api/inventory/framework/view/AbstractSurfView.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,14 @@ abstract class AbstractSurfView(
109109
protected open fun onViewUpdate(update: Context) = Unit
110110

111111
/**
112-
* Applies modifications to the [ViewContainer] and optionally updates the inventory title.
112+
* Applies modifications to the [ViewContainer] and updates the inventory title.
113113
*
114114
* The [block] is executed within a [ViewContainerModificationContext] that provides
115-
* component management functions. If [context] is provided:
115+
* component management functions. Title updates are propagated based on [context]:
116116
* - For an [OpenContext], the title is set via `modifyConfig`.
117117
* - For any other context, `updateTitleForEveryone` is called to update all viewers.
118118
*
119-
* @param context optional context used to propagate the title change; `null` skips
120-
* the title update (useful during initial setup)
119+
* @param context context used to propagate the title change to viewers
121120
* @param block modifications to apply to the [ViewContainer]
122121
*/
123122
protected fun modifyContainer(

0 commit comments

Comments
 (0)