forked from mtcontrib/boost_cart
Rename a parameter to match its purpose.
This commit is contained in:
parent
cbe0ab9770
commit
9d059b8e31
|
@ -55,7 +55,7 @@ function boost_cart:is_rail(pos, railtype)
|
|||
return minetest.get_item_group(node, "connect_to_raillike") == railtype
|
||||
end
|
||||
|
||||
function boost_cart:check_front_up_down(pos, dir_, check_down, railtype)
|
||||
function boost_cart:check_front_up_down(pos, dir_, check_up, railtype)
|
||||
local dir = vector.new(dir_)
|
||||
local cur = nil
|
||||
|
||||
|
@ -66,7 +66,7 @@ function boost_cart:check_front_up_down(pos, dir_, check_down, railtype)
|
|||
return dir
|
||||
end
|
||||
-- Up
|
||||
if check_down then
|
||||
if check_up then
|
||||
dir.y = 1
|
||||
cur = vector.add(pos, dir)
|
||||
if boost_cart:is_rail(cur, railtype) then
|
||||
|
|
Loading…
Reference in New Issue
Block a user