minetest/minetest — pull request #972 by 0gb-us (2013-10-29 00:53:17+00:00)
Title: Fixed ignoring of "diggable" property of nodes.

Previously, the "diggable" property of nodes was being ignored, due to the node_dig() function making two false assumptions. First, it assumes that a valid node definition can be counted using the # operator. This is not true, as Lua ignores table entries that aren't indexed by number when using the # operator, causing all valid node definitions to return 0 when using it. Second, the function assumes that unknown nodes will return an empty table. This is also untrue, as they will return the unknown item's definition table.

This removes the faulty table count checker and adds "diggable = true" to the unknown node's definition, to allow diggability of undefined nodes while now allowing other nodes to be defined as not diggable.