diff options
author | Hume2 <teratux.mail@gmail.com> | 2018-09-08 19:54:44 +0200 |
---|---|---|
committer | Hume2 <teratux.mail@gmail.com> | 2018-09-08 19:54:44 +0200 |
commit | bbfe7f301b329016021d3d5c6de580a30d48fc37 (patch) | |
tree | 4657a050cb72ac6c5b289e4e452a82ae3ea4d283 | |
parent | b99baf332cad6cda417b78e3c8af8e4c7d7b7785 (diff) |
Use self.collisionbox for getting the node bellow
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -403,7 +403,7 @@ function bike.on_step(self, dtime) end -- Can we ride good here? - if not is_bike_friendly({x=p.x, y=p.y-0.355, z=p.z}) then + if not is_bike_friendly({x=p.x, y=p.y + self.collisionbox[2] - 0.05, z=p.z}) then self.v = self.v / 1.05 end |