Add getter calls for raw nodedb
authororwell96 <mono96.mml@gmail.com>
Sun, 29 Jan 2017 20:24:40 +0000 (21:24 +0100)
committerorwell96 <mono96.mml@gmail.com>
Sun, 29 Jan 2017 20:24:40 +0000 (21:24 +0100)
(required for itrainmap mod)

advtrains/advtrains/nodedb.lua

index 0e1d836..0a8c1e8 100644 (file)
@@ -224,9 +224,13 @@ minetest.register_on_dignode(function(pos, oldnode, digger)
        ndb.clear(pos)
 end)
 
-function ndb.t()
-       return ndb_nodes[141061759008906]
+function ndb.get_nodes()
+       return ndb_nodes
 end
+function ndb.get_nodeids()
+       return ndb_nodeids
+end
+
 
 advtrains.ndb=ndb