catch ClassCastException in the ItemDatabase update method

This commit is contained in:
Joo200 2023-08-14 18:11:11 +02:00
parent 9bbd6028d0
commit 6aa39cb83b
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class ItemDatabase {
ChestShop.getBukkitLogger().log(Level.SEVERE, "YAML of the item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted: \n" + serialized);
}
}
} catch (IOException | ClassNotFoundException | SQLException e) {
} catch (IOException | ClassNotFoundException | SQLException | ClassCastException e) {
ChestShop.getBukkitLogger().log(Level.SEVERE, "Unable to convert item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ")", e);
} catch (StackOverflowError e) {
ChestShop.getBukkitLogger().log(Level.SEVERE, "Item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted. Sorry :(");