diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-01-29 21:24:40 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-01-29 21:24:40 +0100 |
commit | 90390dfc98ccc348dd572af101133c7c7a0ff14d (patch) | |
tree | 40d358773bba0cfb5c57ed33cb1f77401a42c9a0 | |
parent | 4b63e8d9d6ac5c38936e4a5fc45fa5f3709ba0b7 (diff) | |
download | advtrains-90390dfc98ccc348dd572af101133c7c7a0ff14d.tar.gz advtrains-90390dfc98ccc348dd572af101133c7c7a0ff14d.tar.bz2 advtrains-90390dfc98ccc348dd572af101133c7c7a0ff14d.zip |
Add getter calls for raw nodedb
(required for itrainmap mod)
-rw-r--r-- | advtrains/advtrains/nodedb.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/advtrains/advtrains/nodedb.lua b/advtrains/advtrains/nodedb.lua index 0e1d836..0a8c1e8 100644 --- a/advtrains/advtrains/nodedb.lua +++ b/advtrains/advtrains/nodedb.lua @@ -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 |