Fixed coloring of leather armor sets so that they do not error out with
bows.
This commit is contained in:
parent
c7375a24b7
commit
fd495c8ea5
@ -6,6 +6,5 @@
|
|||||||
<classpathentry kind="lib" path="D:/Documents/Test Server/plugins/AutoPluginUpdate.jar"/>
|
<classpathentry kind="lib" path="D:/Documents/Test Server/plugins/AutoPluginUpdate.jar"/>
|
||||||
<classpathentry kind="lib" path="D:/Documents/Test Server/plugins/GlowAPI_v1.4.4.jar"/>
|
<classpathentry kind="lib" path="D:/Documents/Test Server/plugins/GlowAPI_v1.4.4.jar"/>
|
||||||
<classpathentry kind="lib" path="D:/Documents/Test Server/spigot-1.9.2-R0.1-SNAPSHOT.jar"/>
|
<classpathentry kind="lib" path="D:/Documents/Test Server/spigot-1.9.2-R0.1-SNAPSHOT.jar"/>
|
||||||
<classpathentry kind="src" path="/AutoPluginUpdate"/>
|
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
Binary file not shown.
@ -3457,25 +3457,27 @@ public class GenericFunctions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void ConvertSetColor(ItemStack item, ItemSet set) {
|
public static void ConvertSetColor(ItemStack item, ItemSet set) {
|
||||||
if (set==ItemSet.JAMDAK) {
|
if (item.getType().name().contains("LEATHER_")) {
|
||||||
LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta();
|
if (set==ItemSet.JAMDAK) {
|
||||||
lm.setColor(org.bukkit.Color.fromRGB(128, 64, 0));
|
LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta();
|
||||||
item.setItemMeta(lm);
|
lm.setColor(org.bukkit.Color.fromRGB(128, 64, 0));
|
||||||
}
|
item.setItemMeta(lm);
|
||||||
if (set==ItemSet.DARNYS) {
|
}
|
||||||
LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta();
|
if (set==ItemSet.DARNYS) {
|
||||||
lm.setColor(org.bukkit.Color.fromRGB(224, 224, 224));
|
LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta();
|
||||||
item.setItemMeta(lm);
|
lm.setColor(org.bukkit.Color.fromRGB(224, 224, 224));
|
||||||
}
|
item.setItemMeta(lm);
|
||||||
if (set==ItemSet.ALIKAHN) {
|
}
|
||||||
LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta();
|
if (set==ItemSet.ALIKAHN) {
|
||||||
lm.setColor(org.bukkit.Color.fromRGB(64, 0, 64));
|
LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta();
|
||||||
item.setItemMeta(lm);
|
lm.setColor(org.bukkit.Color.fromRGB(64, 0, 64));
|
||||||
}
|
item.setItemMeta(lm);
|
||||||
if (set==ItemSet.LORASAADI) {
|
}
|
||||||
LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta();
|
if (set==ItemSet.LORASAADI) {
|
||||||
lm.setColor(org.bukkit.Color.fromRGB(0, 64, 0));
|
LeatherArmorMeta lm = (LeatherArmorMeta)item.getItemMeta();
|
||||||
item.setItemMeta(lm);
|
lm.setColor(org.bukkit.Color.fromRGB(0, 64, 0));
|
||||||
|
item.setItemMeta(lm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user