mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
even even even more work
This commit is contained in:
@@ -171,7 +171,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
@Nullable
|
||||
- public PathEntity a(Entity entity, int i) {
|
||||
+ public final PathEntity calculateDestination(Entity entity) { return a(entity, 0); } public PathEntity a(Entity entity, int i) {
|
||||
return this.a(ImmutableSet.of(new BlockPosition(entity)), entity, 16, true, i); // Paper
|
||||
return this.a(ImmutableSet.of(entity.getChunkCoordinates()), entity, 16, true, i); // Paper
|
||||
}
|
||||
|
||||
@@ -0,0 +0,0 @@ public abstract class NavigationAbstract {
|
||||
@@ -234,11 +234,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
return this.a(entity, this.e);
|
||||
}
|
||||
|
||||
- public Vec3D g() {
|
||||
+ public Vec3D getNext() { return g(); } public Vec3D g() { // Paper - OBFHELPER
|
||||
PathPoint pathpoint = (PathPoint) this.a.get(this.e);
|
||||
- public BaseBlockPosition g() {
|
||||
+ public BaseBlockPosition getNext() { return g(); } public BaseBlockPosition g() { // Paper - OBFHELPER
|
||||
PathPoint pathpoint = this.h();
|
||||
|
||||
return new Vec3D((double) pathpoint.a, (double) pathpoint.b, (double) pathpoint.c);
|
||||
return new BaseBlockPosition(pathpoint.a, pathpoint.b, pathpoint.c);
|
||||
diff --git a/src/main/java/net/minecraft/server/PathPoint.java b/src/main/java/net/minecraft/server/PathPoint.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/PathPoint.java
|
||||
|
Reference in New Issue
Block a user