Fixed 1.8 world item format reading.
This commit is contained in:
@@ -217,7 +217,12 @@ BLOCKTYPE BlockStringToType(const AString & a_BlockTypeString)
|
||||
|
||||
bool StringToItem(const AString & a_ItemTypeString, cItem & a_Item)
|
||||
{
|
||||
return gsBlockIDMap.ResolveItem(TrimString(a_ItemTypeString), a_Item);
|
||||
AString ItemName = TrimString(a_ItemTypeString);
|
||||
if (ItemName.substr(0, 10) == "minecraft:")
|
||||
{
|
||||
ItemName = ItemName.substr(10);
|
||||
}
|
||||
return gsBlockIDMap.ResolveItem(ItemName, a_Item);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user