Made highlight command update quicker.
This commit is contained in:
parent
4f18f25c01
commit
73adefdc7f
@ -80,7 +80,9 @@ public class HighlightIslandCommand implements CommandRunnable {
|
||||
int playerX = playerLocation.getBlockX(), playerY = playerLocation.getBlockY(), playerZ = playerLocation.getBlockZ();
|
||||
IslandWorldMap map = worldInfo.getIslandMap();
|
||||
|
||||
highlighter.update(new Point2(playerX, playerZ), map);
|
||||
for (int i = 0; i < 8; i++) {
|
||||
highlighter.update(new Point2(playerX, playerZ), map);
|
||||
}
|
||||
|
||||
LinkedList<Point2> highlighted = highlighter.getHighlighted();
|
||||
for (Point2 point2 : highlighted) {
|
||||
@ -90,7 +92,7 @@ public class HighlightIslandCommand implements CommandRunnable {
|
||||
}
|
||||
waitingList.add(highlighter);
|
||||
}
|
||||
}, 0, 4);
|
||||
}, 0, 8);
|
||||
|
||||
}
|
||||
|
||||
@ -105,8 +107,8 @@ public class HighlightIslandCommand implements CommandRunnable {
|
||||
|
||||
private class PlayerIslandHighlighter {
|
||||
public final int TRAIL_LENGTH = 64;
|
||||
private final int MAX_SEARCH = 24;
|
||||
private final int MAX_SEARCH_DIST = 8;
|
||||
private final int MAX_SEARCH = 20;
|
||||
private final int MAX_SEARCH_DIST = 16;
|
||||
private final Player player;
|
||||
private final LinkedList<Point2> highlighted = new LinkedList<>();
|
||||
private DepthFirstSearch dfs;
|
||||
|
Loading…
Reference in New Issue
Block a user