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

Merge pull request #11 from RyanHecht/armor_color_fix

fixed leather armor color not applying if there were no boots
This commit is contained in:
Lars Martens 2016-07-28 09:49:02 +02:00 committed by GitHub
commit 2487e3816e

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))
+"}";
}