Skip to content

Commit

Permalink
Merge pull request #75 from Pan-nav/master
Browse files Browse the repository at this point in the history
GUI builder slot action filters click events in player inventory
  • Loading branch information
joshbker authored Nov 17, 2024
2 parents 893c6cb + f2d0cf8 commit c4b2b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/gg/flyte/twilight/gui/GUI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GUI(val title: Component, val size: Int, val type: InventoryType, val cont
lateinit var viewer: Player

private val clickEvent = event<InventoryClickEvent> {
if (inventory != this@GUI.inventory) return@event
if (clickedInventory != this@GUI.inventory) return@event
slotAction[slot]?.invoke(this)
}

Expand Down

0 comments on commit c4b2b35

Please sign in to comment.