Fix Null Pointer.
This commit is contained in:
parent
04be7ff32a
commit
1a59c3d33a
Binary file not shown.
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user