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:
parent
1d216261fc
commit
7a8ca68a51
1 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||||
+"}";
|
+"}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue