diff options
author | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2024-02-25 13:54:05 -0500 |
---|---|---|
committer | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2024-02-25 15:33:27 -0500 |
commit | dc408a7d00f4e589b242610643dafbc28307c7ab (patch) | |
tree | 4b3b967a2e90e1fe3be332a71e3feb4636f981e3 /src/main/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitual.java | |
parent | ecb507502c3278408571e94095e1f9c24c7b2a40 (diff) | |
download | Skyblocker-dc408a7d00f4e589b242610643dafbc28307c7ab.tar.gz Skyblocker-dc408a7d00f4e589b242610643dafbc28307c7ab.tar.bz2 Skyblocker-dc408a7d00f4e589b242610643dafbc28307c7ab.zip |
Tweak particle direction detection
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitual.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitual.java | 6 |
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; |