mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-13 18:01:44 +01:00
Let's us javas max int.
max
This commit is contained in:
parent
f6ee159de3
commit
9fe86c728a
@ -22,8 +22,6 @@ import java.util.concurrent.atomic.AtomicReference;
|
|||||||
|
|
||||||
public class StackedItemManagerImpl implements StackedItemManager {
|
public class StackedItemManagerImpl implements StackedItemManager {
|
||||||
|
|
||||||
private final static int MAX_INT = 1500000000;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull StackedItem getStackedItem(Item item) {
|
public @NotNull StackedItem getStackedItem(Item item) {
|
||||||
return new StackedItemImpl(item);
|
return new StackedItemImpl(item);
|
||||||
@ -106,8 +104,8 @@ public class StackedItemManagerImpl implements StackedItemManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int maxItemStackSize = Settings.MAX_STACK_ITEMS.getInt();
|
long maxItemStackSize = Settings.MAX_STACK_ITEMS.getLong();
|
||||||
if (maxItemStackSize > MAX_INT) maxItemStackSize = MAX_INT;
|
if (maxItemStackSize > Integer.MAX_VALUE) maxItemStackSize = Integer.MAX_VALUE;
|
||||||
|
|
||||||
ItemStack fromItemStack = from.getItemStack();
|
ItemStack fromItemStack = from.getItemStack();
|
||||||
ItemStack toItemStack = to.getItemStack();
|
ItemStack toItemStack = to.getItemStack();
|
||||||
|
Loading…
Reference in New Issue
Block a user