forked from luanti-org/minetest_game
		
	Fix boat floating in the air when water being drained away (#2788)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e6aec880de
						
					
				
				
					commit
					1ade8941b4
				
			| @@ -171,7 +171,8 @@ function boat.on_step(self, dtime) | ||||
| 		end | ||||
| 	end | ||||
| 	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()) | ||||
| 		return | ||||
| 	end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user