Fix Null Pointer.

This commit is contained in:
sigonasr2 2016-07-17 04:54:45 -05:00
parent 04be7ff32a
commit 1a59c3d33a
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -2420,7 +2420,7 @@ public class GenericFunctions {
} else { } else {
ItemMeta m = item.getItemMeta(); ItemMeta m = item.getItemMeta();
List<String> oldlore = m.getLore(); List<String> oldlore = m.getLore();
if (oldlore.size()>=1) { if (oldlore.size()>=1 && oldlore.get(0).contains(ChatColor.MAGIC+" BM")) {
String secondpart = oldlore.get(0).split(ChatColor.MAGIC+" BM")[1]; String secondpart = oldlore.get(0).split(ChatColor.MAGIC+" BM")[1];
return BowMode.valueOf(secondpart); return BowMode.valueOf(secondpart);
} else { } else {