Closed shurik204 closed 7 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.
ContainerItemContext.withConstant
SnapshotParticipant<ItemVariant>
SingleSlotStorage<ItemVariant>
I fixed it now in version 1.0.9a. Thank you for reporting the issue!
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 extendsSnapshotParticipant<ItemVariant>
and implementsSingleSlotStorage<ItemVariant>
like this.