BKCommonLib icon indicating copy to clipboard operation
BKCommonLib copied to clipboard

Support loading 1.13+ ItemStacks stored YAML on 1.12.2 and before

Open bergerkiller opened this issue 6 years ago • 1 comments

BkCommonLib version: 1.15.1-v1-SNAPSHOT
Spigot version: 1.12.2

Problem or bug:

Loading YAML containing ItemStack information saved on MC 1.13 or later, on MC 1.12.2, does not function in all expected cases

Expected behaviour:

Can load YAML containing itemstacks saved on later versions

Steps to reproduce:

Attempt loading YAML such as:

item:
  ==: org.bukkit.inventory.ItemStack
  type: BIRCH_LEAVES
  meta:
    ==: ItemMeta
    meta-type: UNSPECIFIC
    Unbreakable: true

Which fails to find the material 'BIRCH_LEAVES' (called 'LEAVES' on 1.12.2)

bergerkiller avatar Dec 26 '19 22:12 bergerkiller

Sounds like a pain lol

bbayu123 avatar Jan 10 '20 21:01 bbayu123