Fix boat floating in the air when water being drained away (#2788)
This commit is contained in:
parent
4e3afc0035
commit
27e70c9524
@ -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 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user