Skip to content

Commit

Permalink
change method name
Browse files Browse the repository at this point in the history
  • Loading branch information
MCTBL committed Sep 17, 2024
1 parent 4c7573f commit de8805f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/appeng/me/cache/GridStorageCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ private void updateEssentiaCellStatus(final double bytesTotalToAdd, final double
this.essentiaCellCount++;
}

private void updateCellsStatusUseICCRAndStack(final ICellCacheRegistry iccr, final ItemStack newCellStack) {
private void updateCellsStatusFromRegistry(final ICellCacheRegistry iccr, final ItemStack newCellStack) {
switch (iccr.getCellType()) {
case ITEM -> {
this.updateItemCellStatus(
Expand Down Expand Up @@ -476,7 +476,7 @@ private void updateBytesInfo() {
if (cellInv != null && cellInv.getInternal() instanceof ICellCacheRegistry iccr
&& iccr.canGetInv()) {
ItemStack stack = td.getStackInSlot(index);
this.updateCellsStatusUseICCRAndStack(iccr, stack);
this.updateCellsStatusFromRegistry(iccr, stack);
}

}
Expand All @@ -493,7 +493,7 @@ private void updateBytesInfo() {
}

if (handler instanceof ICellCacheRegistry iccr && iccr.canGetInv()) {
this.updateCellsStatusUseICCRAndStack(iccr, stack);
this.updateCellsStatusFromRegistry(iccr, stack);
}
}
}
Expand All @@ -504,7 +504,7 @@ private void updateBytesInfo() {

private void putItemStackIntoMap(final ItemStackMap<Integer> map, final ItemStack stack, final int cellStatus) {
ItemStack newStack = new ItemStack(stack.getItem(), 1, stack.getItemDamage());
if (map.computeIfPresent(newStack, (currentStack, stackCount) -> stackCount += 1) == null) {
if (map.computeIfPresent(newStack, (currentStack, stackCount) -> stackCount + 1) == null) {
map.put(newStack, 1);
}
}
Expand Down

0 comments on commit de8805f

Please sign in to comment.