diff --git a/build.gradle.kts b/build.gradle.kts index 70eb7e1..b57ec53 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ val githubActor = project.findProperty("gpr.user") as String? ?: System.getenv(" val githubToken = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") group = "me.tech" -version = "1.4.5" +version = "1.4.6" repositories { mavenCentral() diff --git a/development/build.gradle.kts b/development/build.gradle.kts index e15557f..9687b23 100644 --- a/development/build.gradle.kts +++ b/development/build.gradle.kts @@ -19,7 +19,7 @@ repositories { } dependencies { - compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT") + compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT") implementation(rootProject) } @@ -28,7 +28,7 @@ tasks.jar { } tasks.withType { - minecraftVersion("1.20.2") + minecraftVersion("1.20.4") } bukkit { diff --git a/src/main/kotlin/me/tech/mcchestui/item/GUIHeadItem.kt b/src/main/kotlin/me/tech/mcchestui/item/GUIHeadItem.kt index 7027f72..e74f4ee 100644 --- a/src/main/kotlin/me/tech/mcchestui/item/GUIHeadItem.kt +++ b/src/main/kotlin/me/tech/mcchestui/item/GUIHeadItem.kt @@ -41,7 +41,7 @@ class GUIHeadItem : GUIItem(Material.PLAYER_HEAD) { var skullOwner: OfflinePlayer? get() = itemMeta.owningPlayer set(value) { - stack.editMeta(SkullMeta::class.java) { + itemStack.editMeta(SkullMeta::class.java) { it.owningPlayer = value } } @@ -54,7 +54,7 @@ class GUIHeadItem : GUIItem(Material.PLAYER_HEAD) { var playerProfile: PlayerProfile? get() = itemMeta.playerProfile set(value) { - stack.editMeta(SkullMeta::class.java) { + itemStack.editMeta(SkullMeta::class.java) { it.playerProfile = value } } diff --git a/src/main/kotlin/me/tech/mcchestui/item/GUIItem.kt b/src/main/kotlin/me/tech/mcchestui/item/GUIItem.kt index 534b0ab..e3688c8 100644 --- a/src/main/kotlin/me/tech/mcchestui/item/GUIItem.kt +++ b/src/main/kotlin/me/tech/mcchestui/item/GUIItem.kt @@ -59,7 +59,7 @@ fun guiItem( open class GUIItem constructor( - private val itemStack: ItemStack + protected val itemStack: ItemStack ) { constructor(type: Material) : this(ItemStack(type, 1))