From 2e1a69c3b1154c189816c8072ce3a4dbcc9fa163 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 9 May 2011 19:22:07 +0100 Subject: Added glass, with rendering and furnace support. --- src/inventory.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index f91e2e0b6..47a8d4de9 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -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; } -- cgit v1.2.3