Skip to content

Commit a0dcc03

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 3398123 + 158b109 commit a0dcc03

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repositories {
2121
}
2222

2323
dependencies {
24-
implementation("com.github.DebitCardz:mc-chestui-plus:1.4.5")
24+
implementation("com.github.DebitCardz:mc-chestui-plus:1.4.6")
2525
}
2626
```
2727
### Maven
@@ -34,7 +34,7 @@ dependencies {
3434
<dependency>
3535
<groupId>com.github.DebitCardz</groupId>
3636
<artifactId>mc-chestui-plus</artifactId>
37-
<version>1.4.5</version>
37+
<version>1.4.6</version>
3838
</dependency>
3939

4040
```

development/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919
}
2020

2121
dependencies {
22-
compileOnly("io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT")
22+
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
2323
implementation(rootProject)
2424
}
2525

@@ -28,7 +28,7 @@ tasks.jar {
2828
}
2929

3030
tasks.withType<RunServer> {
31-
minecraftVersion("1.20.2")
31+
minecraftVersion("1.20.4")
3232
}
3333

3434
bukkit {

src/main/kotlin/me/tech/mcchestui/item/GUIHeadItem.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class GUIHeadItem : GUIItem(Material.PLAYER_HEAD) {
4141
var skullOwner: OfflinePlayer?
4242
get() = itemMeta.owningPlayer
4343
set(value) {
44-
stack.editMeta(SkullMeta::class.java) {
44+
itemStack.editMeta(SkullMeta::class.java) {
4545
it.owningPlayer = value
4646
}
4747
}
@@ -54,7 +54,7 @@ class GUIHeadItem : GUIItem(Material.PLAYER_HEAD) {
5454
var playerProfile: PlayerProfile?
5555
get() = itemMeta.playerProfile
5656
set(value) {
57-
stack.editMeta(SkullMeta::class.java) {
57+
itemStack.editMeta(SkullMeta::class.java) {
5858
it.playerProfile = value
5959
}
6060
}

src/main/kotlin/me/tech/mcchestui/item/GUIItem.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fun guiItem(
5959

6060

6161
open class GUIItem constructor(
62-
private val itemStack: ItemStack
62+
protected val itemStack: ItemStack
6363
) {
6464
constructor(type: Material)
6565
: this(ItemStack(type, 1))

0 commit comments

Comments
 (0)