Food rotting in JEI plus ignoring admin shops
teagan75 opened this issue ยท 5 comments
Describe the bug
The food is showing a rotten percentage while still in JEI. It resets when you pull it out but it's rather disconcerting.
To Reproduce
Steps to reproduce the behavior:
- Install Food Funk, Custom NPCs and JEI
- Stay in game for a bit and look up food in JEI
- You will see rot percentages
- Add food for sale in a CustomNPC, wait 7 days and food rots completely.
Expected behavior
Rot percentage showing 0% in JEI. Food not rotting in CustomNPCs admin shops.
JEI is probably creating items to use in the trade container UI, but Food Funk has no way of knowing they are not real items so it is processing them normally.
One way would be for JEI to not create items for UI entries, but I'm guessing that would be difficult for them. Anyone know if JEI provides an API for detecting it an item is in a UI and not a real item - which Food Funk could use to avoid rotting and rot display for such UI items?