mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 07:19:56 +03:00
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
--- ../src-base/minecraft/net/minecraft/pathfinding/FlyingNodeProcessor.java
|
|
+++ ../src-work/minecraft/net/minecraft/pathfinding/FlyingNodeProcessor.java
|
|
@@ -272,7 +272,9 @@
|
|
EnumSet<PathNodeType> enumset = EnumSet.<PathNodeType>noneOf(PathNodeType.class);
|
|
PathNodeType pathnodetype = PathNodeType.BLOCKED;
|
|
BlockPos blockpos = new BlockPos(entitylivingIn);
|
|
+ this.currentEntity = entitylivingIn;
|
|
pathnodetype = this.getPathNodeType(blockaccessIn, x, y, z, xSize, ySize, zSize, canBreakDoorsIn, canEnterDoorsIn, enumset, pathnodetype, blockpos);
|
|
+ this.currentEntity = null;
|
|
|
|
if (enumset.contains(PathNodeType.FENCE))
|
|
{
|
|
@@ -321,6 +323,7 @@
|
|
{
|
|
pathnodetype = PathNodeType.DAMAGE_CACTUS;
|
|
}
|
|
+ else if (pathnodetype1 == PathNodeType.DAMAGE_OTHER) pathnodetype = PathNodeType.DAMAGE_OTHER;
|
|
else
|
|
{
|
|
pathnodetype = pathnodetype1 != PathNodeType.WALKABLE && pathnodetype1 != PathNodeType.OPEN && pathnodetype1 != PathNodeType.WATER ? PathNodeType.WALKABLE : PathNodeType.OPEN;
|