Skip to content

Named filters lose their name if saved with no items or attributes in the filter #5017

@Veylyn

Description

@Veylyn

Describe the Bug

If a list or attribute filter is named using an anvil, opened, and no items or attributes are set in the filter when it is closed or saved, the name is reset to default. The name is kept if an item or attribute is in the filter when it is closed.

Reproduction Steps

  1. Take a filter, either attribute or list filter
  2. Name the filter in an anvil
  3. Open the filter and close the dialog without putting anything in
  4. Filter name is automatically removed

Expected Result

Filter should retain their custom name when saved with no contents.

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 10

Mod Version

0.5.1b

Minecraft Version

1.18.2

Forge Version

40.2.9

Other Mods

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmedIssue's details are known, it is consistently reproducible, and it needs a fixtype: bugIssue where something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions