summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSX <sx@minetest>2020-08-09 23:09:31 +0300
committerSX <sx@minetest>2020-08-09 23:09:31 +0300
commit477a02403421f87d957bd5acaf9d873f99930bae (patch)
tree5ed320ac4fce01334dc2c28b9fa61b073054493f
parent34cb0e768202d29a26af127b2cb0c47180714c84 (diff)
downloadpipeworks-477a02403421f87d957bd5acaf9d873f99930bae.tar
pipeworks-477a02403421f87d957bd5acaf9d873f99930bae.tar.gz
pipeworks-477a02403421f87d957bd5acaf9d873f99930bae.tar.bz2
pipeworks-477a02403421f87d957bd5acaf9d873f99930bae.tar.xz
pipeworks-477a02403421f87d957bd5acaf9d873f99930bae.zip
Expose teleport tube database API
-rw-r--r--teleport_tube.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/teleport_tube.lua b/teleport_tube.lua
index 7dcdf62..0e4f53c 100644
--- a/teleport_tube.lua
+++ b/teleport_tube.lua
@@ -261,3 +261,11 @@ if minetest.get_modpath("mesecons_mvps") ~= nil then
end
end)
end
+
+-- Expose teleport tube database API for other mods
+pipeworks.tptube = {
+ hash = hash,
+ save_tube_db = save_tube_db,
+ get_db = function() return tp_tube_db or read_tube_db() end,
+ tp_tube_db_version = tp_tube_db_version
+}