Fix NPE in item panel getMask (#1078)

This commit is contained in:
slprime authored and GitHub committed 2026-10-15 18:59:55 +03:00
1 parent 1c6cc8b693
commit c49f8808fd
2 files changed
+5 -7

No files matched your search

@@ -89,6 +89,10 @@ public class ItemsPanelGrid extends ItemsGrid<ItemsPanelGrid.ItemsPanelGridSlot,
public void refresh(GuiContainer gui) {
if (this.newItems != null) {
if (this.rawItems.size() != this.newItems.size()) {
this.page = 0;
}
this.groupItems.clear();
this.itemToGroup.clear();
this.forceExpand = false;