From 6cda15cb8d8ae48cecdf5ac6c92849940f57a3e8 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Mon, 1 Nov 2021 21:49:20 -0400 Subject: [PATCH] Check if bucket sounds should be played in adventure mode Fixes #2608 --- .../sound/BlockSoundInteractionHandler.java | 40 +++++++++++++++++++ .../block/BucketSoundInteractionHandler.java | 7 +++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/sound/BlockSoundInteractionHandler.java b/connector/src/main/java/org/geysermc/connector/network/translators/sound/BlockSoundInteractionHandler.java index 04a879dc9..22ccd158c 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/sound/BlockSoundInteractionHandler.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/sound/BlockSoundInteractionHandler.java @@ -25,10 +25,16 @@ package org.geysermc.connector.network.translators.sound; +import com.github.steveice10.mc.protocol.data.game.entity.player.GameMode; +import com.github.steveice10.opennbt.tag.builtin.CompoundTag; +import com.github.steveice10.opennbt.tag.builtin.ListTag; +import com.github.steveice10.opennbt.tag.builtin.StringTag; +import com.github.steveice10.opennbt.tag.builtin.Tag; import com.nukkitx.math.vector.Vector3f; import org.geysermc.connector.inventory.GeyserItemStack; import org.geysermc.connector.network.session.GeyserSession; import org.geysermc.connector.registry.Registries; +import org.geysermc.connector.utils.BlockUtils; import java.util.Map; @@ -88,4 +94,38 @@ public interface BlockSoundInteractionHandler extends SoundInteractionHandler