Roughly Enough Items Fabric/Forge/NeoForge (REI)

Roughly Enough Items Fabric/Forge/NeoForge (REI)

40M Downloads

[Bug] Incorrect Item Handling While In Cheat Mode

MorningSage opened this issue ยท 0 comments

commented

Describe the bug
When using the Forge version, with Cheat Mode enabled, and while viewing a recipe for any item, clicking on an item from REI will /give the item to the player setting the cursor stack, but the ItemStack is not rendered. One of two things can happen: Hitting escape once to exit the recipe will sometimes allow the cursor stack to render. Other times, the item is still not rendered and hitting escape a second time to leave the inventory/creative menu will drop/spawn the item in-game. The expected behavior is likely to not do anything when a recipe is being viewed or no slot is available to place the item into.

Steps to Reproduce
Steps to reproduce the behavior:

  • While hovering over an item in REI, use R (or your custom keybinding) to view the recipe for the item. You must ensure that the item has a valid recipe known to REI.
  • Click on any item on the right in REI to give the item to yourself.
  • Notice the status message stating that the item has been given to you but that you cannot see the item at all.
  • Hit Escape or your preferred keybinding to leave the recipe.
  • Scenario 1:
    • Observe that the item is now showing (Surprise, you had it all along!) and that you can place the item in an inventory slot.
  • Scenario 2:
    • Notice that the item is still not rendering.
    • Hit Escape or your preferred keybinding to leave the inventory (survival) or creative menu (creative).
    • Watch as the item is thrown/spawned in the world and the ItemEntity can now be picked up.

Screenshots

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

  • Minecraft (1.16.5)
  • Forge (36.1.23)
  • REI (6.0.0.228)
  • Architectury (1.14.157)
  • Cloth Config (4.11.26)

Logs
N/A - Nothing unusual appears in the log
https://gist.github.com/MorningSage/1a1ebe7d144d5e69af0c3fb981c416d9

Additional context
N/A