Fix Null Pointer.

dev
sigonasr2 9 years ago
parent 04be7ff32a
commit 1a59c3d33a
  1. BIN
      TwosideKeeper.jar
  2. 2
      src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java

Binary file not shown.

@ -2420,7 +2420,7 @@ public class GenericFunctions {
} else {
ItemMeta m = item.getItemMeta();
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];
return BowMode.valueOf(secondpart);
} else {

Loading…
Cancel
Save