1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

fix crash cart mod

This commit is contained in:
crabman77 2016-08-03 14:10:37 +02:00
parent 66ab74194d
commit 0496cd14eb

View File

@ -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,
})