Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main/java/cn/dancingsnow/bigger_ae2/item/cell/DigitalSingularityStorageCell.java
  • Loading branch information
gjmhmm8 committed May 5, 2024
2 parents 89a0416 + 0a51080 commit a93a121
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class DigitalSingularityStorageCell implements StorageCell {

private final ItemStack stack;
private final ISaveProvider container;
private final AEKeyType KTFilter;

private final AEKeyType type;
@Getter
private AEKey storedItem;
@Getter
Expand All @@ -38,11 +38,9 @@ public DigitalSingularityStorageCell(ItemStack stack, ISaveProvider container) {

DigitalSingularityCellItem cell = (DigitalSingularityCellItem) stack.getItem();

this.KTFilter=cell.getKeyType();

storedItem = getTag().contains(KEY) ? AEKey.fromTagGeneric(getTag().getCompound(KEY)) : null;
storedItem = getTag().contains(KEY) ? cell.getKeyType().loadKeyFromTag(getTag().getCompound(KEY)) : null;
filterItem = cell.getConfigInventory(stack).getKey(0);

type = cell.getKeyType();

count = !getTag().getString(COUNT).isEmpty()
? new BigInteger(getTag().getString(COUNT))
Expand Down Expand Up @@ -97,7 +95,7 @@ public long insert(AEKey what, long amount, Actionable mode, IActionSource sourc
if (storedItem != null && !what.equals(storedItem)) {
return 0;
}
if(KTFilter!=null && !KTFilter.contains(what)) {return 0;}
if(type!=null && !type.contains(what)) {return 0;}

BigInteger insertAmount = BigInteger.valueOf(amount);
if (mode == Actionable.MODULATE) {
Expand Down

0 comments on commit a93a121

Please sign in to comment.