Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FiLKoNd committed Nov 11, 2024
1 parent b7b5582 commit 6eabf48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ subprojects {
apply(plugin = "maven-publish")

group = "com.filkond"
version = "1.0.8"
version = "1.0.9"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package com.filkond.paperktlib.paper.ext
import org.bukkit.inventory.ItemStack
import org.bukkit.inventory.meta.ItemMeta

fun ItemStack.applyMeta(meta: ItemMeta.() -> Unit) = this.editMeta(meta)
fun <M : ItemMeta> ItemStack.applyMeta(metaClass: Class<M>, meta: M.() -> Unit) = this.editMeta(metaClass, meta)
fun ItemStack.applyMeta(meta: ItemMeta.() -> Unit): ItemStack = this.apply { editMeta(meta) }
fun <M : ItemMeta> ItemStack.applyMeta(metaClass: Class<M>, meta: M.() -> Unit): ItemStack = this.apply { editMeta(metaClass, meta) }

0 comments on commit 6eabf48

Please sign in to comment.