Skip to content

Custom attributes (clarity, scrying lens) cause crash on Fabric 1.21 #1180

Description

@Robotgiggle

NOTE: #1181 does not fix this issue, but I can't figure out how to unlink it.

Modloader

Fabric

Minecraft version

1.21.1

Hex Casting version

0.12.0 [dev]

Issue description

Equipping or unequipping the scrying lens on Fabric 1.21 displays the following error in the log:
Image
Applying or clearing the clarity or clouding effect does the same thing, but only for the grid_zoom attribute.
Furthermore, any attempt to pause the game after doing the above will cause a crash, with the following message:
Image
All of this implies that hex's custom entity attributes are not being properly registered. Notably, the tooltip on the scrying lens listing its attribute modifiers does work, so the actual issue may have something to do with linking the attributes to the player entity rather than creating them in the first place.

Full game log can be found here: https://mclo.gs/hJ9jBDV

Steps to reproduce

  1. Hold/equip scrying lens, or drink a clarity potion
  2. Observe log errors
  3. Observe that grid zoom is unchanged, and scry sight does not work
  4. Attempt to pause the game
  5. Observe crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.21bugSomething isn't workingcrashIssue involves a game crash.fabricOnly relevant on Fabricneeds investigation

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions