mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-09-27 14:12:59 +02:00
Made sneak breaking configurable.
This commit is contained in:
parent
828fdb429f
commit
b26bf1e3a3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user