Skip to content

Commit

Permalink
Fix compile issues after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Oct 24, 2023
1 parent 0ddd18b commit 4b2f47f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public boolean isEditable() {
public void render(PoseStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean isSelected, float delta) {
if (PluginManager.areAnyReloading()) {
Screen screen = Minecraft.getInstance().screen;
Minecraft.getInstance().setScreen(new ConfigReloadingScreen(new TranslatableComponent("text.rei.config.is.reloading"), PluginManager::areAnyReloading, () -> Minecraft.getInstance().setScreen(screen)));
Minecraft.getInstance().setScreen(new ConfigReloadingScreen(new TranslatableComponent("text.rei.config.is.reloading"), PluginManager::areAnyReloading, () -> Minecraft.getInstance().setScreen(screen), null));
} else {
super.render(matrices, index, y, x, entryWidth, entryHeight, mouseX, mouseY, isSelected, delta);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import me.shedaniel.rei.impl.common.entry.type.EntryRegistryImpl;
import me.shedaniel.rei.impl.common.entry.type.collapsed.CollapsedStack;
import me.shedaniel.rei.impl.common.entry.type.collapsed.CollapsibleEntryRegistryImpl;
import me.shedaniel.rei.impl.common.util.HNEntryStackWrapper;
import me.shedaniel.rei.impl.common.util.HashedEntryStackWrapper;
import net.minecraft.client.Minecraft;
import net.minecraft.resources.ResourceLocation;
Expand Down Expand Up @@ -80,7 +81,7 @@ public class EntryListSearchManager {
return checkCraftable ? stack -> workingItems.contains(stack.hashExact()) : stack -> true;
}, HashedEntryStackWrapper::normalize);

private static List<HashedEntryStackWrapper> getAllEntriesContextually(SearchFilter filter) {
private static List<HNEntryStackWrapper> getAllEntriesContextually(SearchFilter filter) {
if (EntryRegistry.getInstance().isReloading()) return List.of();
if (ConfigObject.getInstance().isHidingEntryPanelIfIdle() && filter.getFilter().isEmpty()) {
return List.of();
Expand Down

0 comments on commit 4b2f47f

Please sign in to comment.