Skip to content

Duplicate the augments inside by dropping the opened module #288

@ffcr

Description

@ffcr

Describe the bug

When opening the module's GUI, it does not check whether the operation can be successfully written into the module. As a result, when the module is not in inventory, take out augments in GUI will not affect the module, so the augments can be duplicated.

How to reproduce the bug

Modular Routers version: 13.2.3

  1. Put augments into a module
  2. Open the module's GUI
  3. Press Q to drop the module
  4. Take out augments
  5. Close GUI
  6. Pick up the module and see that the augments are still there.

Expected behavior

When the player performs any operation in the GUI, check whether the operation can actually be applied to the item, and prevent the operation if it cannot be applied.

Additional details

Although it has been prevented from picking up the opened module with the left mouse button in the GUI, there are many ways to move the item to another grid or even out of the inventory.
For example, use 1 to 9 or F to move the module to another grid, use Q to discard the module, and use the player module to transfer the module. When there are other mods in the game, there will be more glitches.
Therefore, it may be necessary to verify each step of the operation to ensure synchronization of the operation.

Which Minecraft version are you using?

1.21

Crash log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions