]> git.lizzy.rs Git - minetest.git/blobdiff - src/inventory.cpp
* better glass graphics
[minetest.git] / src / inventory.cpp
index 289b5bb2b7dde6fce40a681aaed41ca655b55381..47a8d4de90503ed9580bc2724094d08c792d171a 100644 (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;
 }
 
@@ -160,7 +168,6 @@ video::ITexture * CraftItem::getImage()
                name = "cloud.png";
        
        // Get such a texture
-       //return g_irrlicht->getTexture(name);
        return g_texturesource->getTextureRaw(name);
 }
 #endif