From 9d059b8e310620345e3a1d1307f28d9f19fe1665 Mon Sep 17 00:00:00 2001 From: Christopher Head Date: Wed, 20 Jul 2016 00:14:54 -0700 Subject: [PATCH] Rename a parameter to match its purpose. --- functions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.lua b/functions.lua index bcbbaa0..f797363 100644 --- a/functions.lua +++ b/functions.lua @@ -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 \ No newline at end of file +end