Merge pull request #68 from Thomas--S/repair-nodenumber
Allow to repair node number
This commit is contained in:
commit
b643482c02
@ -253,6 +253,14 @@ function techage.remove_node(pos, oldnode, oldmetadata)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Repairs the node number after it was erased by `backend.delete_invalid_entries`
|
||||||
|
function techage.repair_number(pos)
|
||||||
|
local number = techage.get_node_number(pos)
|
||||||
|
if number then
|
||||||
|
backend.set_nodepos(number, pos)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
-- Node register function
|
-- Node register function
|
||||||
|
Loading…
Reference in New Issue
Block a user