mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-09 16:49:35 +01:00
Make powered rails always accelerate moving carts
This commit is contained in:
parent
fcbb4f6e34
commit
f6f8c3e5bc
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ mod.register_straight_rail("mcl_minecarts:golden_rail_v2",{ "mcl_minecarts_rail_
|
|||
mod.register_straight_rail("mcl_minecarts:golden_rail_v2_on",{ "mcl_minecarts_rail_golden_powered.png" },{
|
||||
_doc_items_create_entry = false,
|
||||
_rail_acceleration = function(pos, staticdata)
|
||||
if staticdata.velocity ~= 0 then
|
||||
return 4
|
||||
end
|
||||
|
||||
local dir = mod.get_rail_direction(pos, staticdata.dir, nil, nil, staticdata.railtype)
|
||||
local node_a = minetest.get_node(vector.add(pos, dir))
|
||||
local node_b = minetest.get_node(vector.add(pos, -dir))
|
||||
|
|
Loading…
Reference in a new issue