Wireless Chargers

Wireless Chargers

12M Downloads

[Bug] Wireless charger doesn't charge items in the Trinkets slots

shurik204 opened this issue · 1 comments

commented

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.

commented

I fixed it now in version 1.0.9a.
Thank you for reporting the issue!