aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains_luaautomation/atc_rail.lua2
-rw-r--r--advtrains_luaautomation/init.lua2
-rw-r--r--advtrains_luaautomation/settingtypes.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua
index 594de5c..4706fdf 100644
--- a/advtrains_luaautomation/atc_rail.lua
+++ b/advtrains_luaautomation/atc_rail.lua
@@ -106,7 +106,7 @@ function r.fire_event(pos, evtdata, appr_internal)
get_fc_index = function()
if not train_id then return end
local fc_index_list = {}
- for widx, wagon_id in ipars(train.trainparts) do
+ for widx, wagon_id in ipairs(train.trainparts) do
fc_index_list[widx] = advtrains.wagons[wagon_id].fcind or 1
end
return fc_index_list
diff --git a/advtrains_luaautomation/init.lua b/advtrains_luaautomation/init.lua
index 753340d..1947993 100644
--- a/advtrains_luaautomation/init.lua
+++ b/advtrains_luaautomation/init.lua
@@ -46,7 +46,7 @@ dofile(mp.."/pcnaming.lua")
dofile(mp.."/chatcmds.lua")
-if minetest.settings:get_bool("advtrains_luaautomation_enable_atlac_recipes",false) == true then
+if minetest.settings:get_bool("advtrains_luaautomation_enable_luaatc_recipes",false) == true then
dofile(mp.."/recipes.lua")
end
diff --git a/advtrains_luaautomation/settingtypes.txt b/advtrains_luaautomation/settingtypes.txt
index 20ed52e..641254a 100644
--- a/advtrains_luaautomation/settingtypes.txt
+++ b/advtrains_luaautomation/settingtypes.txt
@@ -1,2 +1,2 @@
# Enable or disable craft recipes for LuaATC components
-advtrains_luaautomation_enable_atlac_recipes (Enable LuaATC component craft recipes) bool true \ No newline at end of file
+advtrains_luaautomation_enable_luaatc_recipes (Enable LuaATC component craft recipes) bool true