diff --git a/init.lua b/init.lua index db7cbd6..de07624 100644 --- a/init.lua +++ b/init.lua @@ -25,10 +25,6 @@ if minetest.get_modpath("technic") then dofile(MP.."/technic_run.lua") end -if minetest.get_modpath("pipeworks") then - dofile(MP.."/override/teleport_tube.lua") -end - -- common functions dofile(MP.."/fuel.lua") dofile(MP.."/upgrade.lua") diff --git a/patches/pipeworks.patch b/patches/pipeworks.patch deleted file mode 100644 index 91e658a..0000000 --- a/patches/pipeworks.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/teleport_tube.lua b/teleport_tube.lua -index f4bad74..d236f04 100644 ---- a/teleport_tube.lua -+++ b/teleport_tube.lua -@@ -50,6 +50,16 @@ local function read_tube_db() - return tp_tube_db - end - -+ -+-- expose for external batch use (jumpdrive) -+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 -+} -+ -+ - -- debug formatter for coordinates used below - local fmt = function(pos) - return pos.x..", "..pos.y..", "..pos.z diff --git a/patches/readme.md b/patches/readme.md deleted file mode 100644 index b4a6452..0000000 --- a/patches/readme.md +++ /dev/null @@ -1,24 +0,0 @@ - -# Various patches for proper jumpdrive integration - -## pipeworks - -Teleport tube compat - -``` -cat ../jumpdrive/patches/pipeworks.patch | patch -p1 -``` - -Adds the following interface: -```lua --- expose for external batch use (jumpdrive) -pipeworks.tptube = { - hash = hash, - save_tube_db = save_tube_db, - tp_tube_db = tp_tube_db, - tp_tube_db_version = tp_tube_db_version -} -``` - -Notes: -* `tp_tube_db_version` should be 2.0