aboutsummaryrefslogtreecommitdiff
path: root/advtrains/api_doc.txt
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-02-16 21:50:07 +0100
committerorwell96 <orwell@bleipb.de>2019-02-16 21:51:14 +0100
commit84f1c3d8a5eb7807c069718c08e6e453ffd585e3 (patch)
tree3f97b0a4bbd0c4ac2c1a6caa3aa4c0934896716f /advtrains/api_doc.txt
parentee079d02ff09c4ae4bc63d892e83146dfe6edd6c (diff)
downloadadvtrains-84f1c3d8a5eb7807c069718c08e6e453ffd585e3.tar.gz
advtrains-84f1c3d8a5eb7807c069718c08e6e453ffd585e3.tar.bz2
advtrains-84f1c3d8a5eb7807c069718c08e6e453ffd585e3.zip
Fix stop rails sometimes not sending stop command
Diffstat (limited to 'advtrains/api_doc.txt')
-rw-r--r--advtrains/api_doc.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/api_doc.txt b/advtrains/api_doc.txt
index 4413dce..0a2cb44 100644
--- a/advtrains/api_doc.txt
+++ b/advtrains/api_doc.txt
@@ -174,9 +174,9 @@ minetest.register_node(nodename, {
^- the code in these 3 default minetest API functions is required for advtrains to work, however you can add your own code
advtrains = {
- on_train_enter=function(pos, train_id) end
+ on_train_enter=function(pos, train_id, train, index) end
^- called when a train enters the rail
- on_train_leave=function(pos, train_id) end
+ on_train_leave=function(pos, train_id, train, index) end
^- called when a train leaves the rail
-- The following function is only in effect when interlocking is enabled: