mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Added glass, with rendering and furnace support.
This commit is contained in:
parent
59c4a342a9
commit
2e1a69c3b1
7 changed files with 100 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue