mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2024-11-24 07:33:44 +01:00
Disallow rail switching up/downhill
This commit is contained in:
parent
c6b9e4b672
commit
7e275e1985
@ -107,7 +107,7 @@ function boost_cart:get_rail_direction(pos_, dir, ctrl, old_switch, railtype)
|
||||
right.z = -dir.x
|
||||
end
|
||||
|
||||
if ctrl then
|
||||
if ctrl and dir.y == 0 then
|
||||
if old_switch == 1 then
|
||||
left_check = false
|
||||
elseif old_switch == 2 then
|
||||
|
Loading…
Reference in New Issue
Block a user