mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
getextPointIndex was not needing to be boxed/nullable
This commit is contained in:
parent
0ae2903d8a
commit
75d51d6f9f
2 changed files with 4 additions and 5 deletions
|
@ -11,7 +11,7 @@ the location.
|
|||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
|
||||
new file mode 100644
|
||||
index 000000000..27b6bb696
|
||||
index 000000000..78230bd28
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/entity/Pathfinder.java
|
||||
@@ -0,0 +0,0 @@
|
||||
|
@ -175,7 +175,7 @@ index 000000000..27b6bb696
|
|||
+ * @return Returns the index of the current point along the points returned in {@link #getPoints()} the entity
|
||||
+ * is trying to reach, or null if we are done with this pathfinding.
|
||||
+ */
|
||||
+ @Nullable Integer getNextPointIndex();
|
||||
+ int getNextPointIndex();
|
||||
+
|
||||
+ /**
|
||||
+ * @return The next location in the path points the entity is trying to reach, or null if there is no next point
|
||||
|
|
|
@ -7,7 +7,7 @@ Implements Pathfinding API for mobs
|
|||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java b/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java
|
||||
new file mode 100644
|
||||
index 0000000000..5062594d62
|
||||
index 0000000000..d166bcdd28
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/entity/PaperPathfinder.java
|
||||
@@ -0,0 +0,0 @@
|
||||
|
@ -106,9 +106,8 @@ index 0000000000..5062594d62
|
|||
+ return points;
|
||||
+ }
|
||||
+
|
||||
+ @Nullable
|
||||
+ @Override
|
||||
+ public Integer getNextPointIndex() {
|
||||
+ public int getNextPointIndex() {
|
||||
+ return path.getNextIndex();
|
||||
+ }
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue