mirror of https://github.com/cabaletta/baritone
Update NetherPath.java
This commit is contained in:
parent
716b3ae0d2
commit
e579bf980d
|
@ -47,8 +47,11 @@ public final class NetherPath extends AbstractList<BetterBlockPos> {
|
|||
return this.backing.size();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The last position in the path, or {@code null} if empty
|
||||
*/
|
||||
public BetterBlockPos getLast() {
|
||||
return this.backing.get(this.backing.size() - 1);
|
||||
return this.isEmpty() ? null : this.backing.get(this.backing.size() - 1);
|
||||
}
|
||||
|
||||
public Vec3d getVec(int index) {
|
||||
|
|
Loading…
Reference in New Issue