Browse Source

Expose teleport tube database API

master
SX 1 month ago
parent
commit
477a024034
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      teleport_tube.lua

+ 8
- 0
teleport_tube.lua View File

@@ -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
}

Loading…
Cancel
Save