Skip to content

Commit

Permalink
Wrap enchantment setting with a try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed May 24, 2017
1 parent e93b501 commit 0cdf875
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/sk89q/craftbook/util/ItemSyntax.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public ItemStack load(String line) throws Exception {
}
catch(NumberFormatException ignored){}
catch(ArrayIndexOutOfBoundsException ignored){}
catch(NullPointerException ignored){}
}
}
if(advMetadataSplit.length > 1) {
Expand Down

0 comments on commit 0cdf875

Please sign in to comment.