Skip to content
Snippets Groups Projects
  • Matthew I's avatar
    1ed559bd
    Allow digging of unknown nodes · 1ed559bd
    Matthew I authored
    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).
    1ed559bd
    History
    Allow digging of unknown nodes
    Matthew I authored
    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).
item.lua 12.05 KiB