From 1aebca3e152af71360d80f18910d60689f4b7a9d Mon Sep 17 00:00:00 2001 From: Jules Date: Thu, 5 Dec 2024 00:08:22 +0100 Subject: [PATCH] Fixed a bug with fishing --- .../Indyuce/mmocore/listener/profession/FishingListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MMOCore-Dist/src/main/java/net/Indyuce/mmocore/listener/profession/FishingListener.java b/MMOCore-Dist/src/main/java/net/Indyuce/mmocore/listener/profession/FishingListener.java index cf3daa81..49fcc4e1 100644 --- a/MMOCore-Dist/src/main/java/net/Indyuce/mmocore/listener/profession/FishingListener.java +++ b/MMOCore-Dist/src/main/java/net/Indyuce/mmocore/listener/profession/FishingListener.java @@ -1,7 +1,7 @@ package net.Indyuce.mmocore.listener.profession; +import io.lumine.mythic.lib.version.Sounds; import io.lumine.mythic.lib.version.VParticle; -import io.lumine.mythic.lib.version.VSound; import net.Indyuce.mmocore.MMOCore; import net.Indyuce.mmocore.api.ConfigMessage; import net.Indyuce.mmocore.api.event.CustomPlayerFishEvent; @@ -194,7 +194,7 @@ public class FishingListener implements Listener { vec.setX(vec.getX() * .08); vec.setZ(vec.getZ() * .08); item.setVelocity(vec); - player.getWorld().playSound(player.getLocation(), VSound.BLOCK_NOTE_BLOCK_HAT.get(), 1, 0); + player.getWorld().playSound(player.getLocation(), Sounds.BLOCK_NOTE_BLOCK_HAT, 1, 0); for (int j = 0; j < 8; j++) location.getWorld().spawnParticle(VParticle.FIREWORK.get(), location, 0, 4 * (RANDOM.nextDouble() - .5), RANDOM.nextDouble() + 1, 4 * (RANDOM.nextDouble() - .5), .08); if (vanillaExpDropped > 0) player.giveExp(vanillaExpDropped);