diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2020-08-10 17:54:28 +0000 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2020-08-10 17:54:28 +0000 |
commit | dedb0dd54ef314b9b1493f5968f82a22ae184c15 (patch) | |
tree | 5ed320ac4fce01334dc2c28b9fa61b073054493f | |
parent | 34cb0e768202d29a26af127b2cb0c47180714c84 (diff) | |
parent | 477a02403421f87d957bd5acaf9d873f99930bae (diff) | |
download | pipeworks-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.lua | 8 |
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 +} |