From 21fed6ebfe9345ccf66c0cac9bf51b22d4c34b52 Mon Sep 17 00:00:00 2001 From: gecko10000 <60494179+levtey@users.noreply.github.com> Date: Fri, 23 Jul 2021 21:01:40 -0700 Subject: [PATCH] Fix bucket dupe (#1806) Fix https://discord.com/channels/272499714048524288/310623455462686720/867790395442462760 --- .../listeners/flags/worldsettings/ObsidianScoopingListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/ObsidianScoopingListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/ObsidianScoopingListener.java index 73fb568a4..bcff672a1 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/ObsidianScoopingListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/ObsidianScoopingListener.java @@ -62,6 +62,7 @@ public class ObsidianScoopingListener extends FlagListener { user.sendMessage("protection.flags.OBSIDIAN_SCOOPING.scooping"); player.getWorld().playSound(player.getLocation(), Sound.ITEM_BUCKET_FILL_LAVA, 1F, 1F); b.setType(Material.AIR); + e.setCancelled(true); Bukkit.getScheduler().runTask(BentoBox.getInstance(), () -> givePlayerLava(player, bucket)); return true; }