Ender Utilities

Ender Utilities

17M Downloads

Planting with Hoe eats hoe

Thiana opened this issue ยท 2 comments

commented

In 0.5.2 using the ender hoe to plant wheat seeds has some unexpected results... It plants the 3x3 pattern but then deletes the hoe :)

Procedure:

  • Create a hoe with capacitor/core/link crystal.
  • Set to player drops
  • Get some seeds
  • Right click on dirt, farmland is created without issue
  • Right click again, seeds are planted and hoe vanishes.

Versions:
MC 1.8.9
Forge 1765
EU 0.5.2
JEI 2.28.7.174

Thanks :)

commented

It eats some of my inventory when I replicate it with my modpack but with just EU alone only the hoe is vanishing.

commented

Another thing derped in the move to IItemHandler ;_;
Fixed for the next version (0.5.3).

Edit: For some more gory details:
It actually deletes items from the inventory starting from the first slot, going until it finds a plantable item. So in the worst case it will delete an item from every slot in the target inventory... and I guess it can do it up to 9 times per use, so 9 items from every slot. That's just nasty X_x
All because for some reason I derped the check for items badly, using extractItem() directly instead of first checking with getStackInSlot(). No idea why I managed to do something that stupid...