Skip to content

Commit 6530931

Browse files
authored
Merge pull request #596 from Score2/dev/6.2.3
Restore the process method of CustomModelData on ItemBuilder
2 parents 403c7bf + 623fb65 commit 6530931

File tree

1 file changed

+2
-5
lines changed
  • module/bukkit/bukkit-util/src/main/kotlin/taboolib/platform/util

1 file changed

+2
-5
lines changed

module/bukkit/bukkit-util/src/main/kotlin/taboolib/platform/util/ItemBuilder.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,8 @@ open class ItemBuilder {
296296
}
297297
// CustomModelData
298298
try {
299-
// 1.21.5+ 必须判断 hasCustomModelData() 否则报错
300-
if (itemMeta.hasCustomModelData()) {
301-
if (customModelData != -1) {
302-
itemMeta.setCustomModelData(customModelData)
303-
}
299+
if (customModelData != -1) {
300+
itemMeta.setCustomModelData(customModelData)
304301
}
305302
} catch (_: NoSuchMethodError) {
306303
}

0 commit comments

Comments
 (0)