mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 15:27:29 +00:00
FlyPathFinder:
-Fixed a bit of pathfinding logic to open diagonal path points
This commit is contained in:
1 parent
a2236c7bb4
commit
e8cea5368f
1 file changed
+6
-6
@@ -253,12 +253,12 @@ public class FlyPathFinder extends PathFinder
|
||||
pathOptions[i++] = pathpoint5;
|
||||
}
|
||||
|
||||
boolean flag = pathpoint3 == null || pathpoint3.costMalus != 0.0F;
|
||||
boolean flag1 = pathpoint == null || pathpoint.costMalus != 0.0F;
|
||||
boolean flag2 = pathpoint2 == null || pathpoint2.costMalus != 0.0F;
|
||||
boolean flag3 = pathpoint1 == null || pathpoint1.costMalus != 0.0F;
|
||||
boolean flag4 = pathpoint4 == null || pathpoint4.costMalus != 0.0F;
|
||||
boolean flag5 = pathpoint5 == null || pathpoint5.costMalus != 0.0F;
|
||||
boolean flag = pathpoint3 != null && pathpoint3.costMalus >= 0.0F;
|
||||
boolean flag1 = pathpoint != null && pathpoint.costMalus >= 0.0F;
|
||||
boolean flag2 = pathpoint2 != null && pathpoint2.costMalus >= 0.0F;
|
||||
boolean flag3 = pathpoint1 != null && pathpoint1.costMalus >= 0.0F;
|
||||
boolean flag4 = pathpoint4 != null && pathpoint4.costMalus >= 0.0F;
|
||||
boolean flag5 = pathpoint5 != null && pathpoint5.costMalus >= 0.0F;
|
||||
|
||||
if (flag && flag3)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user