aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-12-16 20:39:55 +0100
committerorwell96 <orwell@bleipb.de>2018-12-16 20:39:55 +0100
commit36357bd444106282890278092c474eaf397bd8a9 (patch)
treeeff46d972d9dc936d5299a2ba9b5dc1724ec0a8b /advtrains/trainlogic.lua
parentfb10420c38d09b7f60682c55a98c85359bc50eb0 (diff)
downloadadvtrains-36357bd444106282890278092c474eaf397bd8a9.tar.gz
advtrains-36357bd444106282890278092c474eaf397bd8a9.tar.bz2
advtrains-36357bd444106282890278092c474eaf397bd8a9.zip
Fix player_to_train_mapping (H#74)
Entries were not inserted, thus neither damage protection nor teleport-to-train did work
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r--advtrains/trainlogic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index fb87fca..bf17133 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -108,7 +108,7 @@ function advtrains.tp_player_to_train(player)
--set the player to the train position.
--minetest will emerge the area and load the objects, which then will call reattach_all().
--because player is in mapping, it will not be subject to dying.
- player:setpos(train.last_pos_prev)
+ player:setpos(train.last_pos)
end
end
minetest.register_on_joinplayer(function()