SuperMartijn642 / WirelessChargers

3 stars 0 forks source link

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

Closed shurik204 closed 7 months ago

shurik204 commented 10 months ago

Version Info

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

https://github.com/SuperMartijn642/WirelessChargers/assets/43310372/779f5055-30f8-4d42-b454-2d8ab06e7680

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.

SuperMartijn642 commented 7 months ago

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