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 if there were no boots on the ArmorStand

This commit is contained in:
Ryan Hecht 2016-07-26 16:27:28 -04:00
parent 1d216261fc
commit 7a8ca68a51

View file

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