Skip to content

Commit

Permalink
Catch all runtime exceptions while trying to convert items (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 committed Jul 4, 2024
1 parent 64c3126 commit e4c2fd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private boolean updateMetadataVersion(int previousVersion, int newVersion) {
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);
}
}
Expand Down

0 comments on commit e4c2fd6

Please sign in to comment.