more progress
This commit is contained in:
@@ -13,8 +13,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
@Override
|
||||
public PathEntity a(Entity entity, int i) {
|
||||
- return this.a(new BlockPosition(entity), i);
|
||||
+ return this.a(new BlockPosition(entity), entity, i); // Paper - Forward target entity
|
||||
- return this.a(entity.getChunkCoordinates(), i);
|
||||
+ return this.a(entity.getChunkCoordinates(), entity, i); // Paper - Forward target entity
|
||||
}
|
||||
|
||||
private int t() {
|
||||
@@ -46,8 +46,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
@Nullable
|
||||
public PathEntity a(Entity entity, int i) {
|
||||
- return this.a(ImmutableSet.of(new BlockPosition(entity)), 16, true, i);
|
||||
+ return this.a(ImmutableSet.of(new BlockPosition(entity)), entity, 16, true, i); // Paper
|
||||
- return this.a(ImmutableSet.of(entity.getChunkCoordinates()), 16, true, i);
|
||||
+ return this.a(ImmutableSet.of(entity.getChunkCoordinates()), entity, 16, true, i); // Paper
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@@ -61,7 +61,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
return null;
|
||||
} else if (this.a.locY() < 0.0D) {
|
||||
@@ -0,0 +0,0 @@ public abstract class NavigationAbstract {
|
||||
} else if (this.c != null && !this.c.b() && set.contains(this.q)) {
|
||||
} else if (this.c != null && !this.c.b() && set.contains(this.p)) {
|
||||
return this.c;
|
||||
} else {
|
||||
+ // Paper start - Pathfind event
|
||||
@@ -82,8 +82,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+ // Paper end
|
||||
this.b.getMethodProfiler().enter("pathfind");
|
||||
float f = (float) this.p.getValue();
|
||||
BlockPosition blockposition = flag ? (new BlockPosition(this.a)).up() : new BlockPosition(this.a);
|
||||
float f = (float) this.a.b(GenericAttributes.FOLLOW_RANGE);
|
||||
BlockPosition blockposition = flag ? this.a.getChunkCoordinates().up() : this.a.getChunkCoordinates();
|
||||
diff --git a/src/main/java/net/minecraft/server/NavigationFlying.java b/src/main/java/net/minecraft/server/NavigationFlying.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/NavigationFlying.java
|
||||
@@ -92,8 +92,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
@Override
|
||||
public PathEntity a(Entity entity, int i) {
|
||||
- return this.a(new BlockPosition(entity), i);
|
||||
+ return this.a(new BlockPosition(entity), entity, i); // Paper - Forward target entity
|
||||
- return this.a(entity.getChunkCoordinates(), i);
|
||||
+ return this.a(entity.getChunkCoordinates(), entity, i); // Paper - Forward target entity
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user