aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorolim <bobq4582@gmail.com>2024-06-20 15:45:06 +0100
committerolim <bobq4582@gmail.com>2024-07-15 12:38:00 +0100
commitd5df86992795ac29a19ef8450e60ef5e7ee942f0 (patch)
tree02e795405887cd7cb9983d45c4ea15458edb3d21 /src/main/java
parent9af3163bb47a79e843c60b33f75ab7b515eaadfa (diff)
downloadSkyblocker-d5df86992795ac29a19ef8450e60ef5e7ee942f0.tar.gz
Skyblocker-d5df86992795ac29a19ef8450e60ef5e7ee942f0.tar.bz2
Skyblocker-d5df86992795ac29a19ef8450e60ef5e7ee942f0.zip
fix command and increase accuracy
fix clickable command text and use more particles for wishing compass making it a lot more accurate
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationsManager.java2
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationsManager.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationsManager.java
index d6debae5..f9fafc2a 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationsManager.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsLocationsManager.java
@@ -176,7 +176,7 @@ public class CrystalsLocationsManager {
for (String waypointLocation : WAYPOINT_LOCATIONS.keySet()) {
int locationColor = WAYPOINT_LOCATIONS.get(waypointLocation).getColor();
- text.append(Text.literal("[" + waypointLocation + "]").withColor(locationColor).styled(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/skyblocker crystalWaypoints add" + waypointLocation + " " + location))));
+ text.append(Text.literal("[" + waypointLocation + "]").withColor(locationColor).styled(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/skyblocker crystalWaypoints add " + location + " " + waypointLocation))));
}
return text;
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java
index ce1fdf55..338012e7 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/WishingCompassSolver.java
@@ -57,7 +57,7 @@ public class WishingCompassSolver {
/**
* how many particles to use to get direction of a line
*/
- private static final long PARTICLES_PER_LINE = 25;
+ private static final long PARTICLES_PER_LINE = 50;
/**
* the amount of milliseconds to wait for the next particle until assumed failed
*/
@@ -65,7 +65,7 @@ public class WishingCompassSolver {
/**
* the distance the player has to be from where they used the first compass to where they use the second
*/
- private static final long DISTANCE_BETWEEN_USES = 32;
+ private static final long DISTANCE_BETWEEN_USES = 8;
private static SolverStates currentState = SolverStates.NOT_STARTED;
private static Vec3d startPosOne = Vec3d.ZERO;