@@ -156,9 +156,9 @@ private boolean fillHighwayHole(String useBlock){
156156// Block block = ((BlockItem)client.player.getStackInHand(hand).getItem()).getBlock();
157157// if(!useBlock.isInstance(block)) return false;
158158
159- Vec3d vec = client .player .getPos ().add (client .player .getVelocity ()).add (0 , -0.75 , 0 );
159+ Vec3d vec = client .player .getEntityPos ().add (client .player .getVelocity ()).add (0 , -0.75 , 0 );
160160
161- Vec3d pos = client .player .getPos ();
161+ Vec3d pos = client .player .getEntityPos ();
162162 if (aheadDist != 0 && !client .world .getBlockState (client .player .getBlockPos ().down ())
163163 .getCollisionShape (client .world , client .player .getBlockPos ()).isEmpty ()) {
164164 Vec3d dir = Vec3d .fromPolar (0 , client .player .getYaw ()).multiply (aheadDist , 0 , aheadDist );
@@ -175,7 +175,7 @@ private boolean fillHighwayHole(String useBlock){
175175 BlockPos targetBlock = bp .toImmutable ();
176176
177177 if (getPlaceSide (bp ) == null ){
178- pos = client .player .getPos ();
178+ pos = client .player .getEntityPos ();
179179 pos = pos .add (0 , -0.98f , 0 );
180180 pos .add (client .player .getVelocity ());
181181
@@ -209,7 +209,7 @@ private boolean fillHighwayHole(String useBlock){
209209
210210 private Vec3d getEyesPos (){
211211 float eyeHeight = client .player .getEyeHeight (client .player .getPose ());
212- return client .player .getPos ().add (0 , eyeHeight , 0 );
212+ return client .player .getEntityPos ().add (0 , eyeHeight , 0 );
213213 }
214214 private Direction getBlockBreakingSide (BlockPos bp ){
215215 Vec3d eyes = getEyesPos ();
@@ -299,7 +299,7 @@ private boolean putOutFireAndMineObstacles(){
299299 if (client .player .lastX != client .player .getX () || client .player .lastZ != client .player .getZ ()) return false ;
300300
301301 ArrayList <BlockPos > mineSpots = new ArrayList <>();
302- Vec3d pos = client .player .getPos ();
302+ Vec3d pos = client .player .getEntityPos ();
303303 if (pos .getY () > targetY ) pos = new Vec3d (pos .x , targetY , pos .z );
304304 if (dx != 0 ){
305305 mineSpots .add (bp .add (dx , 0 , 0 ));
0 commit comments