mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-25 19:45:36 +01:00
Catch all runtime exceptions while trying to convert items (#600)
This commit is contained in:
parent
64c3126e7a
commit
e4c2fd6ef1
@ -104,7 +104,7 @@ public class ItemDatabase {
|
||||
item.setBase64ItemCode(Base64.encodeObject(yaml.dump(itemStack)));
|
||||
itemDao.update(item);
|
||||
updated.getAndIncrement();
|
||||
} catch (YAMLException | ClassCastException e) {
|
||||
} catch (RuntimeException e) {
|
||||
ChestShop.getBukkitLogger().log(Level.SEVERE, "YAML of the item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted: \n" + serialized);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user