Skip to content

[bug] Auto refill switches to glass bottle instead of water bottle when making mud #293

Description

@pumken

Version
Fabric 26.2, Mouse Wheelie 1.16.3+mc26.2
Describe the bug
When using water bottles to convert dirt to mud and auto refilling from the inventory (as in there is only one water bottle in the hotbar and more in the inventory), the hotbar slot selected afterward contains a glass bottle instead of a water bottle. If one hotbar slot is a water bottle and the rest are neither water bottles nor glass bottles, there is a high chance auto refill will begin rapidly switching the item in the current slot between a glass bottle and a water bottle.

To Reproduce

  1. Populate hotbar slots 1-8 with one glass bottle and hotbar slot 9 with a water bottle. Place at least one other water bottle into the inventory.
  2. Right-click a block of dirt to convert it into a block of mud.
  3. Hotbar slot 9 is sometimes correctly refilled with a water bottle, but the first hotbar slot with a glass bottle is selected.

Expected behavior
After step 2, hotbar slot 9 should be selected with the refilled water bottle.

Log
N/A.

Additional context
To reproduce the second case, replace hotbar slots 1-8 with a random item (say, dirt) and in the inventory, place two water bottles and one glass bottle. Right-clicking a block of dirt should replicate the described behavior. Both cases seem to be inconsistent; rejoining the world before attempting the right-click might make this occur on the first try.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions