Made sneak breaking configurable.

This commit is contained in:
Brianna 2019-06-07 13:48:27 -04:00
parent 828fdb429f
commit b26bf1e3a3
1 changed files with 3 additions and 2 deletions

View File

@ -93,8 +93,9 @@ public class BlockListeners implements Listener {
}
stack.setAmount(stack.getAmount() + itemAmount);
if (instance.getHologram() != null)
if (instance.getHologram() != null) {
instance.getHologram().update(stack);
}
Methods.takeItem(player, itemAmount);
}
}
@ -159,7 +160,7 @@ public class BlockListeners implements Listener {
int amt = 1;
boolean remove = false;
if (player.isSneaking()) {
if (player.isSneaking() && Setting.SNEAK_FOR_STACK.getBoolean()) {
amt = stack.getAmount();
remove = true;
} else if (stack.getAmount() <= 1) {