mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2024-11-27 08:53:45 +01:00
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
|
||||
@ -212,4 +212,4 @@ function boost_cart:register_rail(name, def)
|
||||
end
|
||||
|
||||
minetest.register_node(name, def)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user