unmodifiableList in Path return
This commit is contained in:
parent
47c7413215
commit
e051ac12b5
@ -4,10 +4,7 @@ import baritone.bot.pathing.action.Action;
|
|||||||
import baritone.bot.pathing.goals.Goal;
|
import baritone.bot.pathing.goals.Goal;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.LinkedList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A node based implementation of IPath
|
* A node based implementation of IPath
|
||||||
@ -80,12 +77,12 @@ class Path implements IPath {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Action> actions() {
|
public List<Action> actions() {
|
||||||
return actions;
|
return Collections.unmodifiableList(actions);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<BlockPos> positions() {
|
public List<BlockPos> positions() {
|
||||||
return path;
|
return Collections.unmodifiableList(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user