From 712d6fc7a77711ee66e5011a6463c56b5ae9de62 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 15 Jan 2022 15:37:36 +0800 Subject: [PATCH] v4.4.3 --- pom.xml | 2 +- .../java/com/gmail/St3venAU/plugins/ArmorStandTools/Utils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index fb62770..216c59e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.gmail.st3venau.plugins ArmorStandTools -4.4.2 +4.4.3 ArmorStandTools diff --git a/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Utils.java b/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Utils.java index d753757..20080dc 100644 --- a/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Utils.java +++ b/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Utils.java @@ -168,7 +168,7 @@ class Utils { } static private int getItemCustomModelData(ItemStack is) { - if(is == null || is.getItemMeta() == null || is.getItemMeta().getCustomModelData() == null) return 0; + if(is == null || is.getItemMeta() == null || !is.getItemMeta().hasCustomModelData()) return 0; return is.getItemMeta().getCustomModelData(); }