From b2601692790cc0d4ca91c8e0d525923340feaa51 Mon Sep 17 00:00:00 2001 From: Maverick2797 Date: Sat, 10 May 2025 23:32:33 +0800 Subject: Fix some typos from previous commits - Fix LuaATC craft recipe setting name - Fix "ipars" typo in LuaATC get_fc_index() --- advtrains_luaautomation/atc_rail.lua | 2 +- advtrains_luaautomation/init.lua | 2 +- advtrains_luaautomation/settingtypes.txt | 2 +- 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 -- cgit v1.2.3