mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 18:24:43 +02:00
Fixed issues with Hylian Luck & the placed-block flag.
This commit is contained in:
@ -214,13 +214,14 @@ public class BlockListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onBlockBreakHigher(BlockBreakEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
Block block = event.getBlock();
|
||||
|
||||
if (Misc.isNPC(player)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Permissions.hylianLuck(player) && ItemChecks.isSword(player.getItemInHand())) {
|
||||
Herbalism.hylianLuck(event.getBlock(), player, event);
|
||||
if (Permissions.hylianLuck(player) && ItemChecks.isSword(player.getItemInHand()) && !mcMMO.placeStore.isTrue(block)) {
|
||||
Herbalism.hylianLuck(block, player, event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user