From 40dc6f7514041ddd494123d0e1e5d49e55884911 Mon Sep 17 00:00:00 2001 From: Zepalesque <60141811+Zepalesque@users.noreply.github.com> Date: Fri, 14 Jun 2024 13:51:32 -0400 Subject: [PATCH] fix: aaa --- src/main/java/net/zepalesque/redux/item/VeridiumItem.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/zepalesque/redux/item/VeridiumItem.java b/src/main/java/net/zepalesque/redux/item/VeridiumItem.java index 289609cb6..a10c1eec9 100644 --- a/src/main/java/net/zepalesque/redux/item/VeridiumItem.java +++ b/src/main/java/net/zepalesque/redux/item/VeridiumItem.java @@ -1,5 +1,6 @@ package net.zepalesque.redux.item; +import net.minecraft.core.Holder; import net.minecraft.nbt.ByteTag; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.protocol.game.ClientboundSoundPacket; @@ -72,7 +73,7 @@ default ItemStack deplete(ItemStack stack, @Nullable LivingEntity user, int amou stack.addTagElement(NBT_KEY, ByteTag.valueOf(infusion)); } else { if (user != null && !user.level().isClientSide() && user instanceof ServerPlayer sp) { - sp.connection.send(new ClientboundSoundPacket(ReduxSounds.INFUSION_EXPIRE, SoundSource.PLAYERS, sp.getX(), sp.getY(), sp.getZ(), 0.8F, 0.8F + sp.level().getRandom().nextFloat() * 0.4F, sp.level().getRandom().nextLong())); + sp.connection.send(new ClientboundSoundPacket(getUninfuseSound(), SoundSource.PLAYERS, sp.getX(), sp.getY(), sp.getZ(), 0.8F, 0.8F + sp.level().getRandom().nextFloat() * 0.4F, sp.level().getRandom().nextLong())); } return vi.getUninfusedStack(stack); } @@ -80,7 +81,7 @@ default ItemStack deplete(ItemStack stack, @Nullable LivingEntity user, int amou return null; } - default SoundEvent getUninfuseSound() { - return ReduxSounds.INFUSION_EXPIRE.get(); + default Holder getUninfuseSound() { + return ReduxSounds.INFUSION_EXPIRE; } }