1
0
Fork 0
mirror of https://github.com/haselkern/Minecraft-ArmorStand.git synced 2025-05-17 15:05:33 +00:00

fixed leather armor color not applying when there were no boots

This commit is contained in:
Ryan Hecht 2016-07-26 16:30:57 -04:00
parent 6ca53b05dc
commit 990fe6d331

View file

@ -485,14 +485,14 @@ function getShoesItem(){
function getLeggingsItem(){
if(equipLeggings == "") return "{}";
return "{id:\""+equipLeggings+"\",Count:1b"
+getLeatherColorString($("#leggingscolor"), isLeatherArmor(equipShoes))
+getLeatherColorString($("#leggingscolor"), isLeatherArmor(equipLeggings))
+"}";
}
function getChestplateItem(){
if(equipChestplate == "") return "{}";
return "{id:\""+equipChestplate+"\",Count:1b"
+getLeatherColorString($("#chestplatecolor"), isLeatherArmor(equipShoes))
+getLeatherColorString($("#chestplatecolor"), isLeatherArmor(equipChestplate))
+"}";
}
@ -502,7 +502,7 @@ function getHeadItem(){
// Use input as item
if(equipCustomHeadMode == "item"){
return "{id:\""+equipHelmet+"\",Count:1b"
+getLeatherColorString($("#helmetcolor"), isLeatherArmor(equipShoes))
+getLeatherColorString($("#helmetcolor"), isLeatherArmor(equipHelmet))
+"}";
}