Skip to content

Commit

Permalink
Fix formatted cells not displaying stack counts
Browse files Browse the repository at this point in the history
Closes #33
  • Loading branch information
NotMyWing committed Dec 11, 2023
1 parent 5eac7e4 commit 7fa12bd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import co.neeve.nae2.common.features.subfeatures.JEIFeatures;
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
import com.llamalad7.mixinextras.sugar.Local;
import mezz.jei.config.KeyBindings;
import net.minecraft.client.resources.I18n;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -34,9 +35,10 @@ private <T extends IAEStack<T>> void addCellInformation(ICellInventoryHandler<T>
"Lappeng/api/storage/data/IItemList;"
))
private <T extends IAEStack<T>> IItemList<T> getAvailableItems(ICellInventory<T> instance, IItemList<T> in,
Operation<IItemList<T>> operation) {
Operation<IItemList<T>> operation,
@Local ICellInventoryHandler<T> handler) {
// Return the same list without filling it.
if (JEIFeatures.CELL_VIEW.isEnabled()) return in;
if (!handler.isPreformatted() && JEIFeatures.CELL_VIEW.isEnabled()) return in;

return operation.call(instance, in);
}
Expand Down

0 comments on commit 7fa12bd

Please sign in to comment.