From f0741dbc191c7c714382a498ada814ed969c5361 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 15 Oct 2023 21:14:27 +0200 Subject: [PATCH] Hotfix BEEHIVE sound for SmartPlace --- .../bausystem/features/smartplace/SmartPlaceListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java index b8c53630..40a2bdab 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java @@ -23,6 +23,7 @@ import com.comphenix.tinyprotocol.Reflection; import com.comphenix.tinyprotocol.TinyProtocol; import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.configplayer.Config; +import de.steamwar.inventory.SWItem; import de.steamwar.linkage.Linked; import de.steamwar.linkage.api.Plain; import org.bukkit.*; @@ -70,6 +71,9 @@ public class SmartPlaceListener implements Plain, Listener { IGNORED.add(Material.TNT); IGNORED.add(Material.REDSTONE_ORE); + IGNORED.add(SWItem.getMaterial("BEEHIVE")); + IGNORED.remove(Material.STONE); + IGNORED.remove(Material.BARRIER); } private static final Class useItem = Reflection.getClass("{nms.network.protocol.game}.PacketPlayInUseItem");