From 0496cd14ebae92235f588e41621c510d62570683 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Wed, 3 Aug 2016 14:10:37 +0200 Subject: [PATCH] fix crash cart mod --- 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, })