aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaverick2797 <git.maverick2797@gmail.com>2025-05-10 23:32:33 +0800
committerorwell <orwell@bleipb.de>2025-08-19 22:07:31 +0200
commitb2601692790cc0d4ca91c8e0d525923340feaa51 (patch)
treee190f058299be7d1f262ed0a7ce40eb2f76d936b
parent82a5c5bc5dfce87d3021c5d55b89b2ff94e77341 (diff)
Fix some typos from previous commits
- Fix LuaATC craft recipe setting name - Fix "ipars" typo in LuaATC get_fc_index()
-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