aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron <51387595+AzureAaron@users.noreply.github.com>2024-02-28 21:05:27 +0000
committerGitHub <noreply@github.com>2024-02-28 21:05:27 +0000
commitef2ceee11a07b2861aca28aa73f87a1932a640d2 (patch)
tree945f1221112f9c9e8e7ff612105b093299c7367d /src
parent4d6d1c74b59da671730ca7ada31eedb5fd25c092 (diff)
parentdc408a7d00f4e589b242610643dafbc28307c7ab (diff)
downloadSkyblocker-ef2ceee11a07b2861aca28aa73f87a1932a640d2.tar.gz
Skyblocker-ef2ceee11a07b2861aca28aa73f87a1932a640d2.tar.bz2
Skyblocker-ef2ceee11a07b2861aca28aa73f87a1932a640d2.zip
Merge pull request #573 from kevinthegreat1/diana
Tweak particle direction detection
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitual.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitual.java b/src/main/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitual.java
index 6629c377..45a52388 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitual.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitual.java
@@ -92,8 +92,8 @@ public class MythologicalRitual {
griffinBurrows.get(pos).init();
}
} else if (ParticleTypes.DUST.equals(packet.getParameters().getType())) {
- BlockPos pos = BlockPos.ofFloored(packet.getX(), packet.getY(), packet.getZ()).down(2);
- GriffinBurrow burrow = griffinBurrows.get(pos);
+ BlockPos pos = BlockPos.ofFloored(packet.getX(), packet.getY(), packet.getZ());
+ GriffinBurrow burrow = griffinBurrows.get(pos.down(2));
if (burrow == null) {
return;
}
@@ -106,7 +106,7 @@ public class MythologicalRitual {
if (burrow.nextBurrowLine == null) {
burrow.nextBurrowLine = new Vec3d[1001];
}
- fillLine(burrow.nextBurrowLine, Vec3d.of(pos), nextBurrowDirection);
+ fillLine(burrow.nextBurrowLine, Vec3d.ofCenter(pos.up()), nextBurrowDirection);
} else if (ParticleTypes.DRIPPING_LAVA.equals(packet.getParameters().getType()) && packet.getCount() == 2) {
if (System.currentTimeMillis() > lastEchoTime + 10_000) {
return;