diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-02-04 21:07:18 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-02-04 21:09:20 +0100 |
commit | d4975a7003a1a9065b747133c9d1ba2913b716a9 (patch) | |
tree | 48f78469bd0f45f8b9679ec1ace0341c225880d1 /advtrains/advtrains/tracks.lua | |
parent | 61e48fff280075ec52bfaa31644c22b08814d680 (diff) | |
download | advtrains-d4975a7003a1a9065b747133c9d1ba2913b716a9.tar.gz advtrains-d4975a7003a1a9065b747133c9d1ba2913b716a9.tar.bz2 advtrains-d4975a7003a1a9065b747133c9d1ba2913b716a9.zip |
Even more bugfixes
- add translations of all index values to invert_train
- fix on_leave_node callbacks not being called when train reverses
- fix callbacks on train creation and destruction
- Fix warning when saving ATC rail info
Diffstat (limited to 'advtrains/advtrains/tracks.lua')
-rw-r--r-- | advtrains/advtrains/tracks.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/advtrains/advtrains/tracks.lua b/advtrains/advtrains/tracks.lua index 63c4f16..a4d5bcc 100644 --- a/advtrains/advtrains/tracks.lua +++ b/advtrains/advtrains/tracks.lua @@ -419,8 +419,6 @@ function advtrains.detector.enter_node(pos, train_id) end
function advtrains.detector.leave_node(pos, train_id)
local ppos=advtrains.round_vector_floor_y(pos)
- local pts=minetest.pos_to_string(ppos)
- advtrains.detector.on_node[pts]=nil
advtrains.detector.call_leave_callback(ppos, train_id)
end
function advtrains.detector.stay_node(pos, train_id)
|