From 6e598f852727aeb061a446e2319b8fb3a35f7609 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:40:19 -0700 Subject: [PATCH] Fix incorrect createPath overload arguments, fixes #12043 (#12794) Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Co-authored-by: Shane Freeder --- .../world/entity/ai/navigation/PathNavigation.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/patches/sources/net/minecraft/world/entity/ai/navigation/PathNavigation.java.patch b/paper-server/patches/sources/net/minecraft/world/entity/ai/navigation/PathNavigation.java.patch index 5ed2330325..f980f92134 100644 --- a/paper-server/patches/sources/net/minecraft/world/entity/ai/navigation/PathNavigation.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/entity/ai/navigation/PathNavigation.java.patch @@ -34,7 +34,7 @@ + + @Nullable + protected Path createPath(Set targets, @Nullable Entity target, int regionOffset, boolean offsetUpward, int accuracy) { -+ return this.createPath(targets, target, regionOffset, offsetUpward, accuracy, (float) this.mob.getAttributeValue(Attributes.FOLLOW_RANGE)); ++ return this.createPath(targets, target, regionOffset, offsetUpward, accuracy, this.getMaxPathLength()); + } + + @Nullable