Skip to content

Commit

Permalink
Merge pull request #76 from flytegg/pr/panav-gui-fix
Browse files Browse the repository at this point in the history
Pr/panav gui fix
  • Loading branch information
joshbker authored Nov 17, 2024
2 parents 893c6cb + 709b5be commit bd5a3a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Maven
<dependency>
<groupId>gg.flyte</groupId>
<artifactId>twilight</artifactId>
<version>1.1.15</version>
<version>1.1.16</version>
</dependency>
```

Expand All @@ -33,14 +33,14 @@ maven {
url "https://repo.flyte.gg/releases"
}
implementation "gg.flyte:twilight:1.1.15"
implementation "gg.flyte:twilight:1.1.16"
```

Gradle (Kotlin DSL)
```kotlin
maven("https://repo.flyte.gg/releases")

implementation("gg.flyte:twilight:1.1.15")
implementation("gg.flyte:twilight:1.1.16")
```

Certain features of Twilight require configuration, which can be done via the Twilight class. To setup a Twilight class instance, you can use the `twilight` function as shown below:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "gg.flyte"
version = "1.1.15"
version = "1.1.16"

repositories {
mavenLocal()
Expand Down
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 bd5a3a1

Please sign in to comment.