Fixed Hardened Obscured item breaks.

This commit is contained in:
sigonasr2 2016-07-15 16:10:20 -05:00
parent f2ee0afa71
commit b2f23fc236
3 changed files with 605 additions and 597 deletions

Binary file not shown.

View File

@ -175,6 +175,8 @@ public class GenericFunctions {
m.setDisplayName(ChatColor.BLUE+"Hardened "+UserFriendlyMaterialName(item)); m.setDisplayName(ChatColor.BLUE+"Hardened "+UserFriendlyMaterialName(item));
} }
item.setItemMeta(m); item.setItemMeta(m);
item.setAmount(1);
item.setDurability((short)0);
return item; return item;
} }
} }
@ -241,10 +243,11 @@ public class GenericFunctions {
} }
} }
} }
if (break_count>5) {break_count=5;} if (break_count>6) {break_count=6;}
lore.set(break_line, ChatColor.GRAY+"Breaks Remaining: "+ChatColor.MAGIC+(break_count)); lore.set(break_line, ChatColor.GRAY+"Breaks Remaining: "+ChatColor.MAGIC+(break_count));
TwosideKeeper.log("Setting breaks remaining to "+(break_count),3); TwosideKeeper.log("Setting breaks remaining to "+(break_count),3);
m.setLore(lore); m.setLore(lore);
item.setItemMeta(m);
return break_count; return break_count;
} }
return 0; return 0;

File diff suppressed because it is too large Load Diff