unmodifiableList in Path return

This commit is contained in:
Leijurv 2018-08-02 14:06:50 -04:00
parent 47c7413215
commit e051ac12b5
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 3 additions and 6 deletions

View File

@ -4,10 +4,7 @@ import baritone.bot.pathing.action.Action;
import baritone.bot.pathing.goals.Goal;
import net.minecraft.util.math.BlockPos;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.*;
/**
* A node based implementation of IPath
@ -80,12 +77,12 @@ class Path implements IPath {
@Override
public List<Action> actions() {
return actions;
return Collections.unmodifiableList(actions);
}
@Override
public List<BlockPos> positions() {
return path;
return Collections.unmodifiableList(path);
}
@Override