diff options
author | orwell <orwell@bleipb.de> | 2024-05-23 20:25:35 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2024-05-23 20:25:35 +0200 |
commit | 9af6e32e644cfa53641e83d7550c0af2d31553fd (patch) | |
tree | ed7bab8989e35db5bed619e916d8e0ff5bd2b639 /advtrains | |
parent | 6fd845baec0f5aa8b7cdee1adf8d05061a643242 (diff) | |
download | advtrains-9af6e32e644cfa53641e83d7550c0af2d31553fd.tar.gz advtrains-9af6e32e644cfa53641e83d7550c0af2d31553fd.tar.bz2 advtrains-9af6e32e644cfa53641e83d7550c0af2d31553fd.zip |
Add proper UI aspect selection for static dialog
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/nodedb.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua index ff07df4..62405ce 100644 --- a/advtrains/nodedb.lua +++ b/advtrains/nodedb.lua @@ -212,6 +212,10 @@ function ndb.get_node(pos) end return n end +function ndb.get_ndef(pos) + local n=ndb.get_node_or_nil(pos) + return n and minetest.registered_nodes[n.name] +end function ndb.get_node_raw(pos) local cid=ndbget(pos.x, pos.y, pos.z) if cid then |