1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-07 16:48:40 +00:00

+ sandstone

This commit is contained in:
Nils Dagsson Moskopp 2011-05-28 02:17:19 +02:00
parent acd7ce897d
commit 843ffba567
6 changed files with 27 additions and 0 deletions

View file

@ -3972,6 +3972,21 @@ void Server::UpdateCrafting(u16 peer_id)
found = true;
}
}
// Sandstone
if(!found)
{
ItemSpec specs[9];
specs[3] = ItemSpec(ITEM_MATERIAL, CONTENT_SAND);
specs[4] = ItemSpec(ITEM_MATERIAL, CONTENT_SAND);
specs[6] = ItemSpec(ITEM_MATERIAL, CONTENT_SAND);
specs[7] = ItemSpec(ITEM_MATERIAL, CONTENT_SAND);
if(checkItemCombination(items, specs))
{
rlist->addItem(new MaterialItem(CONTENT_SANDSTONE, 1));
found = true;
}
}
}
} // if creative_mode == false
@ -4060,6 +4075,7 @@ void setCreativeInventory(Player *player)
CONTENT_MUD,
CONTENT_STONE,
CONTENT_SAND,
CONTENT_SANDSTONE,
CONTENT_TREE,
CONTENT_LEAVES,
CONTENT_GLASS,