mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2024-11-23 23:23:44 +01:00
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)
|
||||
}
|
||||
|
||||
print(minetest.pos_to_string(diff))
|
||||
if diff.x > math.abs(self.old_dir.x) or
|
||||
diff.y > math.abs(self.old_dir.y) or
|
||||
diff.z > math.abs(self.old_dir.z) then
|
||||
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
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user