bool StringToItem(const AString & a_ItemTypeString, cItem & a_Item) { AString ItemName = TrimString(a_ItemTypeString); if (ItemName.substr(0, 10) == "minecraft:") { ItemName = ItemName.substr(10); } return gsBlockIDMap.ResolveItem(ItemName, a_Item); }
bool StringToItem(const AString & a_ItemTypeString, cItem & a_Item) { return gsBlockIDMap.ResolveItem(TrimString(a_ItemTypeString), a_Item); }