mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Added null safety check
This commit is contained in:
parent
c80a0355f0
commit
669019f7dc
@ -210,7 +210,9 @@ public class EnchantDisplay extends DisplayModule {
|
||||
|
||||
ItemMeta meta = itemStack.getItemMeta();
|
||||
|
||||
assert meta != null;
|
||||
if (meta == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
PersistentDataContainer pdc = meta.getPersistentDataContainer();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user