summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-08-10 17:54:28 +0000
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-08-10 17:54:28 +0000
commitdedb0dd54ef314b9b1493f5968f82a22ae184c15 (patch)
tree5ed320ac4fce01334dc2c28b9fa61b073054493f
parent34cb0e768202d29a26af127b2cb0c47180714c84 (diff)
parent477a02403421f87d957bd5acaf9d873f99930bae (diff)
downloadpipeworks-dedb0dd54ef314b9b1493f5968f82a22ae184c15.tar
pipeworks-dedb0dd54ef314b9b1493f5968f82a22ae184c15.tar.gz
pipeworks-dedb0dd54ef314b9b1493f5968f82a22ae184c15.tar.bz2
pipeworks-dedb0dd54ef314b9b1493f5968f82a22ae184c15.tar.xz
pipeworks-dedb0dd54ef314b9b1493f5968f82a22ae184c15.zip
Merge branch 'tptube-api' into 'master'
Expose teleport tube database API See merge request VanessaE/pipeworks!24
-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
+}