From 1ec732d6469317ef169cd170bfa43e78590b13f7 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sun, 10 Nov 2024 12:01:42 -0600 Subject: [PATCH] Address review comments --- mods/ENTITIES/mcl_minecarts/carts/with_furnace.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_minecarts/carts/with_furnace.lua b/mods/ENTITIES/mcl_minecarts/carts/with_furnace.lua index bd50b023d..9bc09774f 100644 --- a/mods/ENTITIES/mcl_minecarts/carts/with_furnace.lua +++ b/mods/ENTITIES/mcl_minecarts/carts/with_furnace.lua @@ -1,7 +1,7 @@ local modname = minetest.get_current_modname() local S = minetest.get_translator(modname) -local FURNACE_CART_SPEED = {tonumber(minetest.settings:get("mcl_minecarts_furnace_speed") or 4)} +local FURNACE_CART_SPEED = tonumber(minetest.settings:get("mcl_minecarts_furnace_speed")) or 4 -- Minecart with Furnace mcl_minecarts.register_minecart({ @@ -76,8 +76,8 @@ mcl_minecarts.register_minecart({ -- Update furnace stuff if (staticdata.fueltime or 0) > 0 then for car in mcl_minecarts.train_cars(staticdata) do - if car.velocity < FURNACE_CART_SPEED[1] - 0.1 then -- Slightly less to allow train cars to maintain spacing - car.velocity = FURNACE_CART_SPEED[1] + if car.velocity < FURNACE_CART_SPEED - 0.1 then -- Slightly less to allow train cars to maintain spacing + car.velocity = FURNACE_CART_SPEED end end