1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Added glass, with rendering and furnace support.

This commit is contained in:
Ciaran Gultnieks
2011-05-09 19:22:07 +01:00
parent 59c4a342a9
commit 2e1a69c3b1
7 changed files with 100 additions and 1 deletions

View File

@@ -118,6 +118,10 @@ bool MaterialItem::isCookable()
{
return true;
}
else if(m_content == CONTENT_SAND)
{
return true;
}
return false;
}
@@ -131,6 +135,10 @@ InventoryItem *MaterialItem::createCookResult()
{
return new MaterialItem(CONTENT_STONE, 1);
}
else if(m_content == CONTENT_SAND)
{
return new MaterialItem(CONTENT_GLASS, 1);
}
return NULL;
}