diff --git a/src/main/java/com/Acrobot/ChestShop/Metadata/ItemDatabase.java b/src/main/java/com/Acrobot/ChestShop/Metadata/ItemDatabase.java index 5ea0878..8900e1f 100644 --- a/src/main/java/com/Acrobot/ChestShop/Metadata/ItemDatabase.java +++ b/src/main/java/com/Acrobot/ChestShop/Metadata/ItemDatabase.java @@ -103,7 +103,7 @@ public class ItemDatabase { item.setBase64ItemCode(Base64.encodeObject(yaml.dump(itemStack))); itemDao.update(item); updated.getAndIncrement(); - } catch (YAMLException e) { + } catch (YAMLException | ClassCastException e) { ChestShop.getBukkitLogger().log(Level.SEVERE, "YAML of the item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted: \n" + serialized); } }