Sophisticated Backpacks

Sophisticated Backpacks

97M Downloads

Edible Weapons

gamer-qmen opened this issue ยท 4 comments

commented

Describe the bug
A clear and concise description of what the bug is.

When using autofeeder in backpack if you have edibles in the back from "smokeleaf industry" mod if it auto feeds one of the edibles it will also EAT whatever you are holding

Crash log if it's a crash.

no crash

Info on what other mods you're using that may cause a conflict here if applicable.

Smokeleaf Industry Mod

To Reproduce
Steps to reproduce the behavior:

  1. Have Backpack with autofeeder
  2. have edibles from smokeleaf industry in bag next to be ate
  3. hold item in hand (weapon, tool, blocks)
  4. get hungry to activate autofeed

Expected behavior
A clear and concise description of what you expected to happen.

item held in hand will be eatten (eat sound and animation followed by disappearance of item)

Screenshots
If applicable, add screenshots to help explain your problem.

Untitled_video_-_Made_with_Clipchamp.mp4
Untitled_video_-_Made_with_Clipchamp.1.mp4

Versions
Mod version that you're using. Version of forge may also be helpful in some cases

3.20.17.1150

commented

I can see that you're using it in a pack with other mods than just Sophisticated and smokeleaf industry and I am pretty sure one of those other mods is the cause. By any chance have you got Inventorio in the pack? that is known to delete items like this. If not are you able to recreate with just sophisticated and smokeleaf industry?

commented

i have tested it solely with sophisticated backpacks and smokeleaf industry and bug still occurs

Untitled.video.-.Made.with.Clipchamp.3.mp4
commented

found the issue in my code - I was putting the original item into player's hand (behind the scenes the food gets put into player's hand so that it is as compatible as possible with all kinds of foods) a bit too early before all of the feeding logic was done and Smokeleaf Industry does shrink of the food stack very late, but I apparently found some other examples for that as well so it seems valid. Anyway fixed that in the release that should be up on curseforge/modrinth in a bit

commented

thanks good looken out g <3