Embers

Embers

8M Downloads

[1.12.0-0.230] - Item Vacuum assumes stack size of 64

JaSpr opened this issue ยท 5 comments

commented

Steps to Reproduce

  1. Attach Vacuum to chest as output.
  2. Power vacuum
  3. Place stack of eggs in 1st slot of chest.
  4. put eggs in front of vacuum

Expected behavior

Vacuum places new eggs in second (or other) slot of chest inventory

Actual behavior

Vacuum does not place any more eggs in chest.
Vacuum continues to accept eggs (and only eggs) but cannot output eggs in the chest if the first stack of eggs it comes to is full (with 16 eggs).

I am assuming because it thinks it needs to put more eggs in the full slot, because it didn't check the stack size for the item it has in inventory.

commented

nice, so that's why it kept breaking when we were playing radon >_>

commented

I believe you can do something as simple as item.stackSize() to get the actual stack size. It's been a while since I've worked with it.

commented

For players: A simple workaround is to have the Item Vacuum feed into a hopper, and have the hopper drain into the target chest. The hopper should never have a single slot full with 16 eggs, so long as it can keep draining into the chest (so, so long as there's room in the chest for more eggs)

commented

i think i may have already fixed this a long time ago but i will test again

commented

fixed