diff --git a/src/main/java/org/purpurmc/purpurextras/modules/LootBlocksProtectionModule.java b/src/main/java/org/purpurmc/purpurextras/modules/LootBlocksProtectionModule.java index 7f9ba8e..80db909 100644 --- a/src/main/java/org/purpurmc/purpurextras/modules/LootBlocksProtectionModule.java +++ b/src/main/java/org/purpurmc/purpurextras/modules/LootBlocksProtectionModule.java @@ -3,6 +3,7 @@ import net.kyori.adventure.text.Component; import net.kyori.adventure.text.minimessage.MiniMessage; import org.bukkit.block.BlockState; +import org.bukkit.block.DecoratedPot; import org.bukkit.block.Vault; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; @@ -62,6 +63,8 @@ public boolean shouldEnable() { @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void onDestroyBlockWithLoot(BlockBreakEvent event) { + // decorated pots are only lootable by breaking them + if (event.getBlock().getState() instanceof DecoratedPot) return; if (event.getBlock().getState() instanceof Lootable lootable) { if (!lootable.hasLootTable()) return; handleLootBlockDestruction(event);