From 7a8ca68a516d7e6fd4ea63115cc414b950aad2a6 Mon Sep 17 00:00:00 2001 From: Ryan Hecht Date: Tue, 26 Jul 2016 16:27:28 -0400 Subject: [PATCH] fixed leather armor color not applying if there were no boots on the ArmorStand --- js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index 606a6f7..a9a75cc 100644 --- a/js/main.js +++ b/js/main.js @@ -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)) +"}"; }