Roughly Enough Items Fabric/Forge/NeoForge (REI)

Roughly Enough Items Fabric/Forge/NeoForge (REI)

40M Downloads

[Bug] Strange behavior when opening recipe screen directly from in-game

deirn opened this issue ยท 1 comments

commented

Describe the bug
So I wanted to make a thing that shows what recipe/usage for the block you look at.

ViewSearchBuilder view = ViewSearchBuilder.builder()
    .addUsagesFor(EntryStack.create(stack));
ClientHelper.getInstance().openView(view);

I used the code above on a keybinding and it appears to work but there's no tooltip when hovering the stack. The item search overlay also not showing.

Then if I opened a container before clicking the keybind, the tooltip and overlay would show but when I closed the recipe screen it'll bring me back to the last container. I also couldn't click on that container.

Environment (please complete the following information with the version):

  • Minecraft: 1.16.5
  • Mod Loader: fabric
  • REI: 5.11.202

Additional context
Maybe related to #434

commented

you can test it with this, press numpad 3 and 4 and see it go crazy