mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
added temporary backwards compatibility to player inventory
This commit is contained in:
parent
71dbee43d0
commit
44ce9018dd
1 changed files with 10 additions and 0 deletions
|
@ -242,6 +242,11 @@ void InventoryList::deSerialize(std::istream &is)
|
|||
{
|
||||
break;
|
||||
}
|
||||
// This is a temporary backwards compatibility fix
|
||||
else if(name == "end")
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if(name == "Item")
|
||||
{
|
||||
if(item_i > getSize() - 1)
|
||||
|
@ -518,6 +523,11 @@ void Inventory::deSerialize(std::istream &is)
|
|||
{
|
||||
break;
|
||||
}
|
||||
// This is a temporary backwards compatibility fix
|
||||
else if(name == "end")
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if(name == "List")
|
||||
{
|
||||
std::string listname;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue