[1.21.1] CustomIngredientPacketCodec always falls back.
MerchantPug opened this issue ยท 7 comments
Fabric Loader: 0.16.9
Fabric API: 0.108.0+1.21.1
Hello, I've found a bit of an edge case with the class I mentioned in the title.
Whenever a custom ingredient is attempted to be synced, it will always fall back.
I think that this might be because of the current supported ingredients set being cleared unconditionally.
If anybody is curious on how I found this. I was implementing an EMI plugin that required the custom ingredient data to be sent to the client, so that the remainder stack may be updated.
The mixin is correct and the set is supposed to be cleared unconditionally. CustomIngredientSync.CURRENT_SUPPORTED_INGREDIENTS
is set before PacketCodec#encode
is called and cleared right after encode
is called. If there is an issue with syncing, this mixin is likely not the cause.