Food Funk

Food Funk

443k Downloads

Food rotting in JEI plus ignoring admin shops

teagan75 opened this issue ยท 5 comments

commented

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:

  1. Install Food Funk, Custom NPCs and JEI
  2. Stay in game for a bit and look up food in JEI
  3. You will see rot percentages
  4. 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.

2019-07-01_08 30 12

commented

We're still waiting.

commented

fix?

commented

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?

commented

To add to this issue, I have CustomNPCs in my instance and the food is ignoring that this is an admin shop and the food is rotting. When you buy the food it is rotten.

2019-07-01_08 38 38
2019-07-01_08 40 23

commented

Well I guess the food rot percentage reset after I closed my inventory.

Edit: Food completely rots in CustomNPC admin shops and never resets.

2019-07-01_10 46 49