Allow upgrade item to stack to 16 (Still stacks to 1 in machine) + Fix potential loss of items when shift clicking.
This commit is contained in:
parent
da6016b692
commit
4b1a1b796b
2 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ public class BuiltContainer extends Container {
|
|||
final int max = Math.min(stackToShift.getMaxStackSize(), slot.getSlotStackLimit());
|
||||
stackInSlot = stackToShift.copy();
|
||||
stackInSlot.setCount(Math.min(stackToShift.getCount(), max));
|
||||
stackToShift.setCount(-stackInSlot.getCount());
|
||||
stackToShift.shrink(stackInSlot.getCount());
|
||||
slot.putStack(stackInSlot);
|
||||
slot.onSlotChanged();
|
||||
changed = true;
|
||||
|
|
|
@ -61,7 +61,7 @@ public class ItemUpgrades extends ItemTR implements IUpgrade {
|
|||
setUnlocalizedName("techreborn.upgrade");
|
||||
setHasSubtypes(true);
|
||||
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
||||
setMaxStackSize(1);
|
||||
setMaxStackSize(16);
|
||||
}
|
||||
|
||||
public static ItemStack getUpgradeByName(String name, int count) {
|
||||
|
|
Loading…
Reference in a new issue