mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-05 18:40:06 +01:00
Fix bucket dupe (#1806)
Fix https://discord.com/channels/272499714048524288/310623455462686720/867790395442462760
This commit is contained in:
parent
2044c73f05
commit
21fed6ebfe
@ -62,6 +62,7 @@ public class ObsidianScoopingListener extends FlagListener {
|
|||||||
user.sendMessage("protection.flags.OBSIDIAN_SCOOPING.scooping");
|
user.sendMessage("protection.flags.OBSIDIAN_SCOOPING.scooping");
|
||||||
player.getWorld().playSound(player.getLocation(), Sound.ITEM_BUCKET_FILL_LAVA, 1F, 1F);
|
player.getWorld().playSound(player.getLocation(), Sound.ITEM_BUCKET_FILL_LAVA, 1F, 1F);
|
||||||
b.setType(Material.AIR);
|
b.setType(Material.AIR);
|
||||||
|
e.setCancelled(true);
|
||||||
Bukkit.getScheduler().runTask(BentoBox.getInstance(), () -> givePlayerLava(player, bucket));
|
Bukkit.getScheduler().runTask(BentoBox.getInstance(), () -> givePlayerLava(player, bucket));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user