We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 403c7bf + 623fb65 commit 6530931Copy full SHA for 6530931
module/bukkit/bukkit-util/src/main/kotlin/taboolib/platform/util/ItemBuilder.kt
@@ -296,11 +296,8 @@ open class ItemBuilder {
296
}
297
// CustomModelData
298
try {
299
- // 1.21.5+ 必须判断 hasCustomModelData() 否则报错
300
- if (itemMeta.hasCustomModelData()) {
301
- if (customModelData != -1) {
302
- itemMeta.setCustomModelData(customModelData)
303
- }
+ if (customModelData != -1) {
+ itemMeta.setCustomModelData(customModelData)
304
305
} catch (_: NoSuchMethodError) {
306
0 commit comments