Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Beetroot soup, mushroom stew and rabbit stew do not autofill. #479

Description

@Podgorica

Have you asked for help on discord?

NO

Minecraft Version/s

1.21.4

Modloader

Fabric

Modloader Version

0.16.10

Operating System

Linux

List of all other installed mods

N/A

Describe the problem

Unlike suspicious stew, the hotbar slot isn't autofilled when consuming beetroot soup, mushroom stew or rabbit stew.

The AutoRefillHandler has a case for stews:

} else if (storedItem.itemType.isStew && currentItem.itemType.item == Items.BOWL) {
true

But itemType.isStew is only returning true for items with suspicious stew effects, which the other stews do not have.

inline val ItemType.isStew: Boolean
get() = this.`(isFood)` && vanillaStack.components[DataComponentTypes.SUSPICIOUS_STEW_EFFECTS] != null

Older versions handled this different, which probably worked for the other stews.

inline val ItemType.isStew: Boolean
get() = this.`(isFood)` && vanillaStack.components[DataComponentTypes.FOOD]?.`(convertsToBawl)` ?: false

Steps to reproduce

  1. Put rabbit stew in hotbar.
  2. Put more rabbit stew in inventory.
  3. Drink the rabbit stew from the hotbar.
  4. Observe that the slot isn't refilled, now having an empty bowl in the hotbar.

I have tried to reproduce the problem with only or without "Inventory Profiles Next" and its dependencies installed.

  • I have tested without 'Inventory Profiles Next' and its dependencies
  • I have tested with only 'Inventory Profiles Next' and its dependencies and no other mods

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions