Stormwind99 / FoodFunk

Minecraft mod: What is that funky smell in my backpack? Food spoils over time unless preserved. Configure any item to rot, any container to preserve items.
https://minecraft.curseforge.com/projects/food-funk
GNU Lesser General Public License v3.0
10 stars 8 forks source link

Food rotting in JEI plus ignoring admin shops #59

Open teagan75 opened 5 years ago

teagan75 commented 5 years ago

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

teagan75 commented 5 years ago

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

teagan75 commented 5 years ago

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

Stormwind99 commented 4 years ago

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?

WolfTeamRacing commented 2 years ago

fix?

MagmaBro123 commented 2 years ago

We're still waiting.