[Bug] Wireless charger doesn't charge items in the Trinkets slots
shurik204 opened this issue · 1 comments
Version Info
- Fabric 1.20.1
- Wireless Chargers 1.0.9
Description of the Bug
Charger voids energy trying to charge items in any Trinkets slot.
Steps to Reproduce
Put any chargeable item in the Trinkets slot.
Screenshots
Peek.2024-01-09.20-04.mp4
The issue is here.
You're using ContainerItemContext.withConstant
which doesn't store the item back. You need to create a class that extends SnapshotParticipant<ItemVariant>
and implements SingleSlotStorage<ItemVariant>
like this.