mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-30 14:03:24 +01:00
Fixed issue with single max stacks.
This commit is contained in:
parent
dfd170d001
commit
34c39821a9
@ -391,7 +391,7 @@ public class UltimateStacker extends SongodaPlugin {
|
||||
|
||||
if (newAmount > (itemStack.getMaxStackSize() / 2) && !blacklisted) {
|
||||
item.setMetadata("US_AMT", new FixedMetadataValue(INSTANCE, newAmount));
|
||||
itemStack.setAmount(itemStack.getMaxStackSize() / 2);
|
||||
itemStack.setAmount(Math.max(1, itemStack.getMaxStackSize() / 2));
|
||||
} else {
|
||||
item.removeMetadata("US_AMT", INSTANCE);
|
||||
itemStack.setAmount(newAmount);
|
||||
|
Loading…
Reference in New Issue
Block a user