mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-26 09:40:28 +01:00
fix crash cart mod
This commit is contained in:
parent
66ab74194d
commit
0496cd14eb
@ -82,7 +82,7 @@ minetest.register_node("carts:rail_power", {
|
|||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
minetest.get_meta(pos):set_string("cart_acceleration", "1")
|
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,
|
end,
|
||||||
|
|
||||||
--[[mesecons = {
|
--[[mesecons = {
|
||||||
@ -119,7 +119,7 @@ minetest.register_node("carts:rail_power_invisible", {
|
|||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
minetest.get_meta(pos):set_string("cart_acceleration", "10")
|
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,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user