aboutsummaryrefslogtreecommitdiff
path: root/advtrains/atc.lua
diff options
context:
space:
mode:
authorGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2017-08-20 14:32:38 +0200
committerorwell96 <orwell@bleipb.de>2017-10-25 09:52:10 +0200
commitf228e2d30e0d712c6490fb84d4edfadeba8c4cd7 (patch)
tree9f7eaf8be4e54e162586b44547d9f7af6ded4036 /advtrains/atc.lua
parent291da56aa22608863252f419bbd8f226f0913c76 (diff)
downloadadvtrains-f228e2d30e0d712c6490fb84d4edfadeba8c4cd7.tar.gz
advtrains-f228e2d30e0d712c6490fb84d4edfadeba8c4cd7.tar.bz2
advtrains-f228e2d30e0d712c6490fb84d4edfadeba8c4cd7.zip
Moved default train track to separate mod, for integration with advcarts.
Diffstat (limited to 'advtrains/atc.lua')
-rw-r--r--advtrains/atc.lua14
1 files changed, 2 insertions, 12 deletions
diff --git a/advtrains/atc.lua b/advtrains/atc.lua
index 5f1f64d..c8f7c90 100644
--- a/advtrains/atc.lua
+++ b/advtrains/atc.lua
@@ -80,15 +80,7 @@ local apn_func=function(pos, node)
end
end
-advtrains.register_tracks("default", {
- nodename_prefix="advtrains:dtrack_atc",
- texture_prefix="advtrains_dtrack_atc",
- models_prefix="advtrains_dtrack",
- models_suffix=".b3d",
- shared_texture="advtrains_dtrack_shared_atc.png",
- description=attrans("ATC controller"),
- formats={},
- get_additional_definiton = function(def, preset, suffix, rotation)
+advtrains.atc_function = function(def, preset, suffix, rotation)
return {
after_place_node=apn_func,
after_dig_node=function(pos)
@@ -146,9 +138,7 @@ advtrains.register_tracks("default", {
end,
},
}
- end
-}, advtrains.trackpresets.t_30deg_straightonly)
-
+end
function atc.get_atc_controller_formspec(pos, meta)
local mode=tonumber(meta:get_string("mode")) or 1