Version 1.5
This commit is contained in:
parent
e563b10b3d
commit
bebbda39f7
@ -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
|
||||
--
|
||||
|
@ -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.
|
||||
For a complete list of available chat commands see readme.txt.
|
||||
|
||||
Thanks to GitHub user "ritschwumm" for corrections in this release.
|
@ -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
|
||||
|
4
init.lua
4
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
|
||||
|
||||
|
@ -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
|
||||
--
|
||||
|
14
readme.txt
14
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user