mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 23:58:48 -05:00
Remove "Unknown inventory identifier" deserialization errors, because they can break forward compatibility
This commit is contained in:
parent
ee2d9d973a
commit
60932d2bd7
@ -542,10 +542,6 @@ void InventoryList::deSerialize(std::istream &is)
|
|||||||
throw SerializationError("too many items");
|
throw SerializationError("too many items");
|
||||||
m_items[item_i++].clear();
|
m_items[item_i++].clear();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
throw SerializationError("Unknown inventory identifier");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -907,10 +903,6 @@ void Inventory::deSerialize(std::istream &is)
|
|||||||
|
|
||||||
m_lists.push_back(list);
|
m_lists.push_back(list);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
throw SerializationError("Unknown inventory identifier");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user