what is testing :S

This commit is contained in:
Leijurv 2018-09-23 09:42:20 -07:00
parent b20f148fa6
commit 289637a370
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -19,8 +19,6 @@ package baritone.pathing.calc.openset;
import baritone.pathing.calc.PathNode;
import baritone.pathing.goals.Goal;
import baritone.utils.pathing.BetterBlockPos;
import net.minecraft.util.math.BlockPos;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -91,14 +89,14 @@ public class OpenSetsTest {
// can't use an existing goal
// because they use Baritone.settings()
// and we can't do that because Minecraft itself isn't initted
PathNode pn = new PathNode(new BetterBlockPos(0, 0, 0), new Goal() {
PathNode pn = new PathNode(0, 0, 0, new Goal() {
@Override
public boolean isInGoal(BlockPos pos) {
public boolean isInGoal(int x, int y, int z) {
return false;
}
@Override
public double heuristic(BlockPos pos) {
public double heuristic(int x, int y, int z) {
return 0;
}
});