forked from mtcontrib/boost_cart
Debug line detected
This commit is contained in:
parent
4652679f7d
commit
8280738bf6
3
init.lua
3
init.lua
@ -128,12 +128,11 @@ function boost_cart.cart:on_step(dtime)
|
|||||||
z = math.abs(diff.z)
|
z = math.abs(diff.z)
|
||||||
}
|
}
|
||||||
|
|
||||||
print(minetest.pos_to_string(diff))
|
|
||||||
if diff.x > math.abs(self.old_dir.x) or
|
if diff.x > math.abs(self.old_dir.x) or
|
||||||
diff.y > math.abs(self.old_dir.y) or
|
diff.y > math.abs(self.old_dir.y) or
|
||||||
diff.z > math.abs(self.old_dir.z) then
|
diff.z > math.abs(self.old_dir.z) then
|
||||||
pos = vector.new(expected_pos)
|
pos = vector.new(expected_pos)
|
||||||
minetest.log("action", "Cart moving too fast at "..minetest.pos_to_string(pos))
|
--minetest.log("action", "Cart moving too fast at "..minetest.pos_to_string(pos))
|
||||||
self.punch = true
|
self.punch = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user