diff --git a/src/main/java/com/klikli_dev/occultism/client/gui/storage/StorageControllerGuiBase.java b/src/main/java/com/klikli_dev/occultism/client/gui/storage/StorageControllerGuiBase.java index 99f8a7f21..d4bd912ee 100644 --- a/src/main/java/com/klikli_dev/occultism/client/gui/storage/StorageControllerGuiBase.java +++ b/src/main/java/com/klikli_dev/occultism/client/gui/storage/StorageControllerGuiBase.java @@ -544,8 +544,8 @@ protected void drawItems(GuiGraphics guiGraphics, float partialTicks, int mouseX var changedPage = this.previousPage != this.currentPage; this.previousPage = this.currentPage; - var changedStacksToDisplay = this.lastCachedStacksToDisplayCount != this.cachedStacksToDisplay.size(); - this.lastCachedStacksToDisplayCount = this.cachedStacksToDisplay.size(); + var changedStacksToDisplay = this.lastCachedStacksToDisplayCount != stacksToDisplay.size(); + this.lastCachedStacksToDisplayCount = stacksToDisplay.size(); if(changedPage || changedStacksToDisplay){ this.sortItemStacks(stacksToDisplay);