Added null safety check

This commit is contained in:
Auxilor 2022-03-12 12:25:03 +00:00
parent c80a0355f0
commit 669019f7dc

View File

@ -210,7 +210,9 @@ public class EnchantDisplay extends DisplayModule {
ItemMeta meta = itemStack.getItemMeta();
assert meta != null;
if (meta == null) {
return;
}
PersistentDataContainer pdc = meta.getPersistentDataContainer();