@@ -801,10 +801,10 @@ index 0f307a399a1be63480b03cd35dc011a2faf8f7c7..81a07db3094580f67eceaaf982703ff4
801801 this.currentContext = null;
802802 this.mob = null;
803803diff --git a/net/minecraft/world/level/pathfinder/Path.java b/net/minecraft/world/level/pathfinder/Path.java
804- index d6d3c8f5e5dd4a8cab0d3fcc131c3a59f06130c6..7279a4a276dc99c0814af658478068ef3c925ba8 100644
804+ index d6d3c8f5e5dd4a8cab0d3fcc131c3a59f06130c6..88bf6502d3bb17e6da2039b6d12e91bd440e4259 100644
805805--- a/net/minecraft/world/level/pathfinder/Path.java
806806+++ b/net/minecraft/world/level/pathfinder/Path.java
807- @@ -18,13 +18,32 @@ public class Path {
807+ @@ -18,13 +18,39 @@ public class Path {
808808 private final BlockPos target;
809809 private final float distToTarget;
810810 private final boolean reached;
@@ -813,6 +813,13 @@ index d6d3c8f5e5dd4a8cab0d3fcc131c3a59f06130c6..7279a4a276dc99c0814af658478068ef
813813+ // Leaf start
814814+ @Nullable
815815+ public final org.dreeam.leaf.async.path.AsyncPath task;
816+ + public Path(Path orig, @Nullable org.dreeam.leaf.async.path.AsyncPath task) {
817+ + this.nodes = orig.nodes;
818+ + this.target = orig.target;
819+ + this.distToTarget = orig.distToTarget;
820+ + this.reached = orig.reached;
821+ + this.task = task;
822+ + }
816823+ public Path(List<Node> nodes, BlockPos target, boolean reached, @Nullable org.dreeam.leaf.async.path.AsyncPath task) {
817824 this.nodes = nodes;
818825 this.target = target;
@@ -839,7 +846,7 @@ index d6d3c8f5e5dd4a8cab0d3fcc131c3a59f06130c6..7279a4a276dc99c0814af658478068ef
839846
840847 public void advance() {
841848 this.nextNodeIndex++;
842- @@ -35,7 +54 ,7 @@ public class Path {
849+ @@ -35,7 +61 ,7 @@ public class Path {
843850 }
844851
845852 public boolean isDone() {
@@ -848,7 +855,7 @@ index d6d3c8f5e5dd4a8cab0d3fcc131c3a59f06130c6..7279a4a276dc99c0814af658478068ef
848855 }
849856
850857 @Nullable
851- @@ -99,11 +118 ,13 @@ public class Path {
858+ @@ -99,11 +125 ,13 @@ public class Path {
852859 }
853860
854861 public boolean sameAs(@Nullable Path pathentity) {
0 commit comments