Skip to content

Commit

Permalink
fix: access issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
devproje committed Feb 21, 2024
1 parent 675871f commit 0dd6ed0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object InventoryGUI {
*
* @return The built inventory
*/
fun Player.gui(title: Component, slotType: InventoryType = InventoryType.CHEST_27, access: Boolean = true, init: SimpleInventoryBuilder.() -> Unit = {}): Inventory {
fun Player.gui(title: Component, slotType: InventoryType = InventoryType.CHEST_27, access: Boolean = false, init: SimpleInventoryBuilder.() -> Unit = {}): Inventory {
return SimpleInventoryBuilder(this, slotType, title, access).apply(init).build()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SimpleInventoryBuilder(
override val player: Player,
override val slotType: InventoryType,
override val title: Component,
val access: Boolean
val access: Boolean = false
) : Listener, InventoryBuilder {
override val slots = HashMap<Int, Slot>()
val closeHandlers = ArrayList<InventoryCloseEvent.() -> Unit>()
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
plugins {
java
kotlin("jvm") version "1.9.21"
kotlin("jvm") version "1.9.22"
id("org.jetbrains.dokka") version "1.9.10"
id("com.github.johnrengelman.shadow") version "8.1.1"

`maven-publish`
}

group = "net.projecttl"
version = "4.5.1"
version = "4.5.2"

allprojects {
apply(plugin = "com.github.johnrengelman.shadow")
Expand Down Expand Up @@ -39,7 +39,7 @@ subprojects {

dependencies {
implementation(kotlin("stdlib"))
compileOnly("io.papermc.paper:paper-api:1.20.3-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
if (this@subprojects.name != "InventoryGUI-api") {
dependencies {
implementation(project(":InventoryGUI-api"))
Expand Down

0 comments on commit 0dd6ed0

Please sign in to comment.