Fix incorrect createPath overload arguments, fixes #12043 (#12794)

Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
This commit is contained in:
Jason Penilla
2025-07-03 12:40:19 -07:00
committed by GitHub
parent 0cadaefc09
commit 6e598f8527

View File

@@ -34,7 +34,7 @@
+
+ @Nullable
+ protected Path createPath(Set<BlockPos> 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