mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Remove "Unknown inventory identifier" deserialization errors, because they can break forward compatibility
This commit is contained in:
@@ -542,10 +542,6 @@ void InventoryList::deSerialize(std::istream &is)
|
||||
throw SerializationError("too many items");
|
||||
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);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw SerializationError("Unknown inventory identifier");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user