Skip to content

Commit ce659f6

Browse files
Fix ignoredObscuredInventorySlots DSL default mismatch
1 parent 78fc555 commit ce659f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/dsl

invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/dsl/GuiDsl.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ sealed interface GuiDsl : IngredientsDsl {
140140
/**
141141
* Whether to ignore inventory slots that are visually obscured (e.g. by another GUI layered on top).
142142
*
143-
* Defaults to `false`. Can be set to a static value or bound to a [Provider]:
143+
* Defaults to `true`. Can be set to a static value or bound to a [Provider]:
144144
* ```
145-
* ignoreObscuredInventorySlots by true
145+
* ignoreObscuredInventorySlots by false
146146
* ```
147147
*/
148148
val ignoreObscuredInventorySlots: ProviderDslProperty<Boolean>
@@ -164,7 +164,7 @@ internal abstract class GuiDslImpl<G : Gui, B : Gui.Builder<G, B>>(
164164

165165
private var _background = provider<ItemProvider?>(null)
166166
private var _frozen = provider(false)
167-
private var _ignoreObscuredInventorySlots = provider(false)
167+
private var _ignoreObscuredInventorySlots = provider(true)
168168

169169
override val background: ProviderDslProperty<ItemProvider?>
170170
get() = ProviderDslProperty(::_background)

0 commit comments

Comments
 (0)