From f2e3bb0cd677cd6260d6fd1d85a30ab021f0f4e0 Mon Sep 17 00:00:00 2001 From: Coethium Date: Wed, 3 Aug 2016 00:38:48 +0200 Subject: [PATCH 1/2] Fix: 2 missed calls to 'cart:' into rails.lua --- mods/carts/rails.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/carts/rails.lua b/mods/carts/rails.lua index 7b5e248e..f3e1f778 100644 --- a/mods/carts/rails.lua +++ b/mods/carts/rails.lua @@ -82,7 +82,7 @@ minetest.register_node("carts:rail_power", { after_place_node = function(pos, placer, itemstack) minetest.get_meta(pos):set_string("cart_acceleration", "1") - minetest.get_meta(pos):set_string("cart_touring_velocity", cart:get_staticdata().velocity) + --minetest.get_meta(pos):set_string("cart_touring_velocity", cart:get_staticdata().velocity) end, --[[mesecons = { @@ -119,7 +119,7 @@ minetest.register_node("carts:rail_power_invisible", { after_place_node = function(pos, placer, itemstack) minetest.get_meta(pos):set_string("cart_acceleration", "10") - minetest.get_meta(pos):set_string("cart_touring_velocity", cart:get_staticdata().velocity) + --minetest.get_meta(pos):set_string("cart_touring_velocity", cart:get_staticdata().velocity) end, }) From a7e665138e4db57cc7cda86859c43c20e818260a Mon Sep 17 00:00:00 2001 From: Coethium Date: Wed, 3 Aug 2016 18:13:30 +0200 Subject: [PATCH 2/2] Restore cart speed to 3*walk_speed --- mods/carts/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/carts/init.lua b/mods/carts/init.lua index 44892a7e..b780db69 100755 --- a/mods/carts/init.lua +++ b/mods/carts/init.lua @@ -13,7 +13,7 @@ local cart = { old_pos = nil, old_velocity = nil, pre_stop_dir = nil, - MAX_V = minetest.setting_get("movement_speed_walk")*2.5, -- Limit of the velocity (speed). default: 3 times the walk speed + MAX_V = minetest.setting_get("movement_speed_walk")*3, -- Limit of the velocity (speed). default: 3 times the walk speed TARGET_TOUR_V = 6, -- Target touring velocity, currently unused. railcount = 0, ignorekeypos = nil,