diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-09-26 11:57:28 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-09-26 11:57:28 +0300 |
commit | 0ccc0ac927bdbfcc97c1b5c9d5dc64754946f817 (patch) | |
tree | 0db7c756fbcfd18497dee04578d7cb037b2bd7fa /src/content_mapnode.cpp | |
parent | 63eca0feb2a08aa15f8be1164c4815a44246a2e6 (diff) | |
parent | 8b875d71d1ab928e9866914b886ff58cf8a38192 (diff) | |
download | minetest-0ccc0ac927bdbfcc97c1b5c9d5dc64754946f817.tar.gz minetest-0ccc0ac927bdbfcc97c1b5c9d5dc64754946f817.tar.bz2 minetest-0ccc0ac927bdbfcc97c1b5c9d5dc64754946f817.zip |
Merge remote-tracking branch 'darkrose/master'
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r-- | src/content_mapnode.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp index 09a84156a..38c5099e4 100644 --- a/src/content_mapnode.cpp +++ b/src/content_mapnode.cpp @@ -573,6 +573,20 @@ void content_mapnode_init() f->initial_metadata = new ChestNodeMetadata(); setWoodLikeDiggingProperties(f->digging_properties, 1.0); + i = CONTENT_LOCKABLE_CHEST; + f = &content_features(i); + f->param_type = CPT_FACEDIR_SIMPLE; + f->setAllTextures("chest_side.png"); + f->setTexture(0, "chest_top.png"); + f->setTexture(1, "chest_top.png"); + f->setTexture(5, "chest_lock.png"); // Z- + f->setInventoryTexture("chest_lock.png"); + //f->setInventoryTextureCube("chest_top.png", "chest_side.png", "chest_side.png"); + f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1"; + if(f->initial_metadata == NULL) + f->initial_metadata = new LockingChestNodeMetadata(); + setWoodLikeDiggingProperties(f->digging_properties, 1.0); + i = CONTENT_FURNACE; f = &content_features(i); f->param_type = CPT_FACEDIR_SIMPLE; |