diff --git a/patches/server/EntityPathfindEvent.patch b/patches/server/EntityPathfindEvent.patch index 194d464502..46ec66ae31 100644 --- a/patches/server/EntityPathfindEvent.patch +++ b/patches/server/EntityPathfindEvent.patch @@ -41,6 +41,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 while(blockPos.getY() < this.level.getMaxBuildHeight() && levelChunk.getBlockState(blockPos).isAir()) { @@ -0,0 +0,0 @@ public class GroundPathNavigation extends PathNavigation { + } + + if (!levelChunk.getBlockState(target).isSolid()) { +- return super.createPath(target, distance); ++ return super.createPath(target, entity, distance); // Paper + } else { + BlockPos blockPos2; for(blockPos2 = target.above(); blockPos2.getY() < this.level.getMaxBuildHeight() && levelChunk.getBlockState(blockPos2).isSolid(); blockPos2 = blockPos2.above()) { }