Polymer

Polymer

763k Downloads

[1.21.6] [BUG] charged_projectiles data component is missing, leading to crossbow visual glitch.

Closed this issue ยท 0 comments

commented

Description

Exactly the same bug as #54 .

A solution for me

`kotlin

PolymerItemUtils.ITEM_MODIFICATION_EVENT.register event@{ origin, virtual, _ ->
    origin.get(DataComponents.CHARGED_PROJECTILES)?.let { chargedProjectiles ->
        virtual.set(DataComponents.CHARGED_PROJECTILES, chargedProjectiles)
    }
    return@event virtual
}

`