Vault

Vault

7M Downloads

Items.itemByString("acacia log") returns ItemInfo for LOG, not LOG_2

gabizou opened this issue ยท 1 comments

commented

In an implementation that uses Vault's names for item serialization and deserialization of item types, I'm saving the Items.itemByStack(ItemStack).getName() which returns in the case of Acacia Logs: 'Acacia Log'. The name retrieval works, though the reverse of looking up with the given "Acacia Log".toLowerCase() returns the ItemInfo for LOG. I'm not sure why.

Dark Oak Log works fine btw.

commented

This is a bug in Bukkit's getTypeID() method for itemstacks.