mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-23 18:45:39 +01:00
Fixed issue with single max stacks.
This commit is contained in:
parent
ac39a0b9a0
commit
e3cb4abe9b
@ -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