Allow digging unknown nodes
authorPerttu Ahola <celeron55@gmail.com>
Sat, 3 Dec 2011 11:56:39 +0000 (13:56 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 3 Dec 2011 11:56:39 +0000 (13:56 +0200)
src/nodedef.cpp

index cbb3b6130f236b8b4e936047aeee03eaabc9032d..9f2d4f0af4552dbfc129d58a7f6b74704549a5dc 100644 (file)
@@ -472,6 +472,8 @@ public:
                ContentFeatures f;
                f.name = name;
                f.setAllTextures("unknown_block.png");
+               // Make unknown blocks diggable
+               f.material.diggability = DIGGABLE_NORMAL;
                return set(name, f);
        }
        virtual void updateTextures(ITextureSource *tsrc)