Skip to content

Commit

Permalink
Merge branch 'drtshock:master' into update
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBedrock authored Dec 25, 2023
2 parents d69d718 + 77396da commit e9bc937
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.drtshock</groupId>
<artifactId>PlayerVaultsX</artifactId>
<version>4.2.14</version>
<version>4.2.15</version>
<name>PlayerVaultsX</name>
<url>https://www.spigotmc.org/resources/51204/</url>

Expand Down Expand Up @@ -102,7 +102,7 @@
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-platform-bukkit</artifactId>
<version>4.3.0</version>
<version>4.3.2</version>
<scope>compile</scope>
<optional>true</optional>
<exclusions>
Expand All @@ -119,7 +119,7 @@
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId>
<version>4.14.0</version>
<version>4.15.0</version>
<scope>compile</scope>
<optional>true</optional>
<exclusions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CardboardBoxSerialization {
public static String toStorage(Inventory inventory, String target) {
try {
return Base64Coder.encodeLines(writeInventory(inventory.getContents()));
} catch (IOException e) {
} catch (Exception e) {
throw PlayerVaults.getInstance().addException(new IllegalStateException("Failed to save items for " + target, e));
}
}
Expand All @@ -33,8 +33,8 @@ public static ItemStack[] fromStorage(String data, String target) {
}
try {
return readInventory(Base64Coder.decodeLines(data));
} catch (IOException e) {
PlayerVaults.getInstance().addException(new IllegalStateException("Failed to save items for " + target, e));
} catch (Exception e) {
PlayerVaults.getInstance().addException(new IllegalStateException("Failed to load items for " + target, e));
PlayerVaults.getInstance().getLogger().log(Level.SEVERE, "Failed to load items for " + target, e);
return null;
}
Expand Down

0 comments on commit e9bc937

Please sign in to comment.