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

Fix equipment generation in MC 1.8

This commit is contained in:
Lars Martens 2024-08-24 19:54:50 +02:00
parent db098a390f
commit 6413875cd0
Signed by: haselkern
GPG key ID: B5CF1F363C179AD4

View file

@ -597,10 +597,8 @@ function generateCode() {
if (mcVersion == MC_VERSION.v1_8) { if (mcVersion == MC_VERSION.v1_8) {
// Old 1.8 Equipment format // Old 1.8 Equipment format
// Equipment: [ RightHand, Boots, Leggings, Chestplate, Helmet ] // Equipment: [ RightHand, Boots, Leggings, Chestplate, Helmet ]
const armorItems = generateArmorItems(); const rightHandItem = generateHandItems()[0];
const handItems = generateHandItems(); tags.Equipment = [rightHandItem, ...generateArmorItems()];
tags.Equipment = armorItems.splice(0, 0, handItems[0]);
} else { } else {
// New 1.9+ Equipment format // New 1.9+ Equipment format
if (equipShoes != "" || equipLeggings != "" || equipChestplate != "" || equipHelmet != "") { if (equipShoes != "" || equipLeggings != "" || equipChestplate != "" || equipHelmet != "") {