mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
extended content-type range
This commit is contained in:
parent
f706644a50
commit
90d793f8f3
27 changed files with 428 additions and 318 deletions
|
@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
//#include "serverobject.h"
|
||||
#include "content_sao.h"
|
||||
|
||||
bool item_material_is_cookable(u8 content)
|
||||
bool item_material_is_cookable(content_t content)
|
||||
{
|
||||
if(content == CONTENT_TREE)
|
||||
return true;
|
||||
|
@ -34,7 +34,7 @@ bool item_material_is_cookable(u8 content)
|
|||
return false;
|
||||
}
|
||||
|
||||
InventoryItem* item_material_create_cook_result(u8 content)
|
||||
InventoryItem* item_material_create_cook_result(content_t content)
|
||||
{
|
||||
if(content == CONTENT_TREE)
|
||||
return new CraftItem("lump_of_coal", 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue