mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-23 23:58:34 +01:00
Trying making the lenses stackable.
This commit is contained in:
parent
a85dcdc0f8
commit
c0e0480d73
2 changed files with 4 additions and 1 deletions
|
@ -72,6 +72,9 @@ public class BlockAtomicReconstructor extends FullyDirectionalBlock.Container im
|
|||
heldItem.shrink(1);
|
||||
}
|
||||
return ItemInteractionResult.CONSUME;
|
||||
} else if (ItemStack.isSameItem(heldItem, reconstructor.inv.getStackInSlot(0)) && heldItem.getCount() + 1 <= heldItem.getMaxStackSize()) {
|
||||
reconstructor.inv.setStackInSlot(0, ItemStack.EMPTY);
|
||||
heldItem.grow(1);
|
||||
}
|
||||
} else {
|
||||
ItemStack slot = reconstructor.inv.getStackInSlot(0);
|
||||
|
|
|
@ -20,7 +20,7 @@ public class ItemLens extends ItemBase implements ILensItem {
|
|||
private final Lens type;
|
||||
|
||||
public ItemLens(Lens type) {
|
||||
super(ActuallyItems.defaultProps().stacksTo(1));
|
||||
super(ActuallyItems.defaultProps());
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue