diff --git a/config.lua b/config.lua index b12c2b4..3dcf5be 100644 --- a/config.lua +++ b/config.lua @@ -1,6 +1,6 @@ -------------------------------------------------------------------------------- -- --- Minetest Mod "Travelpoints" Version 1.4 2015-03-27 +-- Minetest Mod "Travelpoints" Version 1.5 2018-02-10 -- -- By Racso Rhodes -- diff --git a/description.txt b/description.txt index 29d6bf0..0d49b6f 100644 --- a/description.txt +++ b/description.txt @@ -1,7 +1,9 @@ -Travelpoints 1.4 2015-03-27 +Travelpoints 1.5 2018-02-10 Save world specific bookmarks to locations you travel to as "travelpoints", then easily teleport to those travelpoints. You can also create transporter pads whose destination can be set to an existing travelpoint, no need to ever enter coords by hand. -For a complete list of available chat commands see readme.txt. \ No newline at end of file +For a complete list of available chat commands see readme.txt. + +Thanks to GitHub user "ritschwumm" for corrections in this release. \ No newline at end of file diff --git a/functions.lua b/functions.lua index ca03015..28e97c2 100644 --- a/functions.lua +++ b/functions.lua @@ -1,6 +1,6 @@ -------------------------------------------------------------------------------- -- --- Minetest Mod "Travelpoints" Version 1.4 2015-03-27 +-- Minetest Mod "Travelpoints" Version 1.5 2018-02-10 -- -- By Racso Rhodes -- @@ -473,7 +473,7 @@ function travelpoints.get_location(name) -- Round down values and adjust. pos.x = math.floor(pos.x + 0.5) - pos.y = math.floor(pos.y) + 0.5 + pos.y = math.floor(pos.y) + 0.5 -- Correction by GitHub user "ritschwumm". pos.z = math.floor(pos.z + 0.5) return pos diff --git a/init.lua b/init.lua index e26a6a6..f0b2de9 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,6 @@ -------------------------------------------------------------------------------- -- --- Minetest Mod "Travelpoints" Version 1.4 2015-03-27 +-- Minetest Mod "Travelpoints" Version 1.5 2018-02-10 -- -- By Racso Rhodes -- @@ -73,8 +73,10 @@ travelpoints.travelpoints_tables = travelpoints.worldpath .. travelpoints.delimi -- Create directory if it does not exist. if minetest.mkdir then + -- Added in Minetest 0.4.13 (Thanks to GitHub user "ritschwumm" for pointing it out.) minetest.mkdir(travelpoints.travelpoints_tables) else + -- For Minetest versions < 0.4.13 os.execute("mkdir \"" .. travelpoints.travelpoints_tables .. "\"") end diff --git a/nodes.lua b/nodes.lua index 61fda64..f50a353 100644 --- a/nodes.lua +++ b/nodes.lua @@ -1,6 +1,6 @@ -------------------------------------------------------------------------------- -- --- Minetest Mod "Travelpoints" Version 1.4 2015-03-27 +-- Minetest Mod "Travelpoints" Version 1.5 2018-02-10 -- -- By Racso Rhodes -- diff --git a/readme.txt b/readme.txt index 001151a..0bbbe53 100644 --- a/readme.txt +++ b/readme.txt @@ -1,6 +1,6 @@ -------------------------------------------------------------------------------- -- --- Minetest Mod "Travelpoints" Version 1.4 2015-03-27 +-- Minetest Mod "Travelpoints" Version 1.5 2018-02-10 -- -- By Racso Rhodes -- @@ -76,6 +76,18 @@ 01. Changelog -------------------------------------------------------------------------------- + 1.5 2018-02-10 + + ! This version corrects the directory creation error that begain with + Minetest Version 0.4.16. + ! Thanks to GitHub user "ritschwumm" for the changes in this version. + * init.lua - Method for world table directory creation updated from + os.execute() to minetest.mkdir(). Older Minetest versions still + supported through os.execute(). + * functions.lua/travelpoints.get_location() - Y axis capture corrected, + no more transporting half inside a node. + * init.lua/minetest.register_chatcommand("tpggo" - Fixed comment typo. + 1.4 2015-03-27 ! This version adds global travelpoints as requested by dgm5555.