mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-23 09:11:27 +01:00
Address review comments
This commit is contained in:
parent
dd9edcb827
commit
6f5760000e
@ -1,7 +1,7 @@
|
|||||||
local modname = minetest.get_current_modname()
|
local modname = minetest.get_current_modname()
|
||||||
local S = minetest.get_translator(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
|
-- Minecart with Furnace
|
||||||
mcl_minecarts.register_minecart({
|
mcl_minecarts.register_minecart({
|
||||||
@ -76,8 +76,8 @@ mcl_minecarts.register_minecart({
|
|||||||
-- Update furnace stuff
|
-- Update furnace stuff
|
||||||
if (staticdata.fueltime or 0) > 0 then
|
if (staticdata.fueltime or 0) > 0 then
|
||||||
for car in mcl_minecarts.train_cars(staticdata) do
|
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
|
if car.velocity < FURNACE_CART_SPEED - 0.1 then -- Slightly less to allow train cars to maintain spacing
|
||||||
car.velocity = FURNACE_CART_SPEED[1]
|
car.velocity = FURNACE_CART_SPEED
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user