1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Rename "NodeItem"/"ToolItem"/"CraftItem" to "node"/"tool"/"craft"

This commit is contained in:
Perttu Ahola 2011-12-02 12:12:07 +02:00
parent a17efe6e8f
commit 69bc9224db
7 changed files with 210 additions and 210 deletions

View file

@ -99,7 +99,7 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is, IGameDef *gamedef)
throw SerializationError("Too large material number");
return new MaterialItem(gamedef, material, count);
}
else if(name == "NodeItem" || name == "MaterialItem3")
else if(name == "node" || name == "NodeItem" || name == "MaterialItem3")
{
std::string all;
std::getline(is, all, '\n');
@ -126,7 +126,7 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is, IGameDef *gamedef)
std::getline(is, inventorystring, '|');
throw SerializationError("MBOItem not supported anymore");
}
else if(name == "CraftItem")
else if(name == "craft" || name == "CraftItem")
{
std::string all;
std::getline(is, all, '\n');
@ -148,7 +148,7 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is, IGameDef *gamedef)
count = 1;
return new CraftItem(gamedef, subname, count);
}
else if(name == "ToolItem")
else if(name == "tool" || name == "ToolItem")
{
std::string all;
std::getline(is, all, '\n');