File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ pub struct CustomPathfinderState(pub Arc<RwLock<CustomPathfinderStateRef>>);
2525/// Arbitrary state that's passed to the pathfinder, intended to be used for
2626/// custom moves that need to access things that are usually inaccessible.
2727///
28- /// This is included in [`PathfinderCtx `].
28+ /// This is included in [`MovesCtx `].
2929///
30- /// [`PathfinderCtx `]: crate::pathfinder::PathfinderCtx
30+ /// [`MovesCtx `]: crate::pathfinder::MovesCtx
3131#[ derive( Debug , Default ) ]
3232pub struct CustomPathfinderStateRef {
3333 map : FxHashMap < TypeId , Box < dyn Any + Send + Sync > > ,
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ fn execute_parkour_move(mut ctx: ExecuteCtx) {
239239 if !ctx. physics . on_ground ( ) && ctx. physics . velocity . y . abs ( ) < 0.1 {
240240 let should_sneak = {
241241 let world = ctx. world . read ( ) ;
242- let pos_above = ctx. position . up ( 1.62 + 0.3 ) ;
242+ let pos_above = ctx. position . up ( 1.8 + 0.1 ) ;
243243 let block_pos_above = BlockPos :: from ( pos_above) ;
244244 let block_pos_above_plus_velocity =
245245 BlockPos :: from ( pos_above + ctx. physics . velocity . with_y ( 0. ) * 4. ) ;
You can’t perform that action at this time.
0 commit comments