mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Fix OpenPoint
This commit is contained in:
1 parent
344e2f0144
commit
6e67dbd37e
1 file changed
+2
-2
@@ -105,12 +105,12 @@ public class FlyPathFinder extends PathFinder
|
||||
|
||||
BlockPos blockpos1 = new BlockPos(entity);
|
||||
|
||||
return this.openPoint(blockpos1.getX(), i, blockpos1.getZ());
|
||||
return this.openPoint(blockpos1.getX(), i, blockpos1.getZ(), i);
|
||||
}
|
||||
|
||||
public FlyPathPoint getPathPointToCoords(Entity entityIn, double x, double y, double z)
|
||||
{
|
||||
return openPoint(MathHelper.floor_double(x), MathHelper.floor_double(y), MathHelper.floor_double(z));
|
||||
return openPoint(MathHelper.floor_double(x), MathHelper.floor_double(y), MathHelper.floor_double(z), (int)z);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user