diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-07-22 01:37:21 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-07-22 01:37:21 +0300 |
commit | 329158f7d1ff7cf8e7bcc00489b5d922dcc129df (patch) | |
tree | 5d317b85112bc50cccce053276ff1d0a25716ce8 | |
parent | fe855e004f424fec1f7f3f2e7e06be2f70f4952e (diff) | |
download | minetest-329158f7d1ff7cf8e7bcc00489b5d922dcc129df.tar.gz minetest-329158f7d1ff7cf8e7bcc00489b5d922dcc129df.tar.bz2 minetest-329158f7d1ff7cf8e7bcc00489b5d922dcc129df.zip |
Fixed small error in mapnode.cpp (didn't cause any harm though)
-rw-r--r-- | src/mapnode.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 391e593f9..b9dfd35b0 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -142,8 +142,10 @@ void init_mapnode() Initially set every block to be shown as an unknown block. Don't touch CONTENT_IGNORE or CONTENT_AIR. */ - for(u16 i=0; i<=253; i++) + for(u16 i=0; i<256; i++) { + if(i == CONTENT_IGNORE || i == CONTENT_AIR) + continue; ContentFeatures *f = &g_content_features[i]; f->setAllTextures("unknown_block.png"); f->dug_item = std::string("MaterialItem ")+itos(i)+" 1"; |