celeron55/minetest — pull request #191 by matttpt (2012-07-31 23:46:17+00:00)
Title: Allow digging of unknown nodes

I'm not sure if this is a good way to solve this issue, but it works. From the commit:

> This allows the removal of nodes with unknown types. get_item_callback() (C++) would fail if a node has an unknown type. Now it will try using the callback from minetest.nodedef_default in this case. Also, minetest.node_dig() (Lua) was altered to always allow digging when the node definition is empty (i.e. unknown node).

I changed get_item_callback() in scriptapi.cpp to try getting the callback from minetest.nodedef_default instead if the item type does not appear to exist. This way unknown nodes can still be manipulated to some degree. I'm not sure if this is a good solution or not, but it's the best I have come up with so far.