bReAk tHe LiNe

This commit is contained in:
SmallJoker 2020-12-12 16:35:13 +01:00 committed by GitHub
parent a0a948e7ea
commit 1bcdb6ec27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,8 @@ function boat.on_step(self, dtime)
end end
end end
local velo = self.object:get_velocity() local velo = self.object:get_velocity()
if not self.driver and self.v == 0 and velo.x == 0 and velo.y == 0 and velo.z == 0 then if not self.driver and
self.v == 0 and velo.x == 0 and velo.y == 0 and velo.z == 0 then
self.object:set_pos(self.object:get_pos()) self.object:set_pos(self.object:get_pos())
return return
end end