Skip to content

Commit

Permalink
Fix crash on lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Aug 9, 2023
1 parent cacb4b6 commit f8bea20
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,13 @@ private static Map<DisplayCategory<?>, List<DisplaySpec>> _buildMapFor(ViewSearc

if (merger != null) {
class Wrapped implements DisplaySpec {
private Display display;
private final Display display;
private List<ResourceLocation> ids = null;
private final int hash = merger.hashOf(display);
private final int hash;

public Wrapped(Display display) {
this.display = display;
this.hash = merger.hashOf(display);
}

@Override
Expand Down Expand Up @@ -527,6 +528,6 @@ private static <T> boolean isStackWorkStationOfCategory(CategoryRegistry.Categor

@Override
public void startReload() {

}
}

0 comments on commit f8bea20

Please sign in to comment.