[Crash] Error processing arrays with empty elements using /give copy format
Felix14-v2 opened this issue · 0 comments
Attempting to copy an NBT containing empty elements in arrays (for example, "ArmorItems: [{}, {id:" ...}] ") crashes the game.
To Reproduce
• Launch Minecraft with NBT Tooltip (tested on v1.1.2)
• Set «Copy format» to «MC_GIVE_CMD»
• Try to copy NBT from any items containing arrays with empty compound elements
• Get crash
Here are some examples of such items:
/give @s diamond{Enchantments:[{}]}
/give @s pig_spawn_egg{EntityTag:{id:"minecraft:zombie",HandItems:[{}, {id:"minecraft:tnt",Count:1b}],ArmorItems:[{}, {}, {}, {id:"minecraft:tnt",Count:1b}]}}
/give @s armor_stand{EntityTag:{id:"minecraft:armor_stand",ArmorItems: [{}, {}, {}, {id: "minecraft:iron_helmet", Count: 1b} ]}}
/give @s armor_stand{EntityTag:{id:"minecraft:armor_stand",ArmorItems: [{}, {id: "minecraft:diamond_leggings", Count: 1b}, {id: "minecraft:diamond_chestplate", Count: 1b}, {id: "minecraft:diamond_helmet", Count: 1b} ]}}