add pumpkins to creative inventory

This commit is contained in:
Menche 2014-04-21 14:52:40 -07:00 committed by darkrose
parent 5a58791031
commit cb398020dc
1 changed files with 2 additions and 0 deletions

View File

@ -2859,6 +2859,7 @@ void content_mapnode_init()
f->dug_item = std::string("MaterialItem2 ")+itos(CONTENT_FARM_PUMPKIN)+" 1";
f->type = CMT_PLANT;
f->hardness = 0.4;
lists::add("creative", i);
i = CONTENT_FARM_PUMPKIN_JACK;
f = &content_features(i);
@ -2879,6 +2880,7 @@ void content_mapnode_init()
content_nodebox_jackolantern(f);
f->setInventoryTextureNodeBox(i,"farm_pumpkin_top.png","farm_pumpkin_jack.png","farm_pumpkin.png");
crafting::set1Any2Recipe(CONTENT_TORCH,CONTENT_FARM_PUMPKIN,CONTENT_FARM_PUMPKIN_JACK);
lists::add("creative", i);
i = CONTENT_FARM_POTATO_1;
f = &content_features(i);