Cediner / ArdClient

Public Haven & Hearth Client (https://discord.gg/24Tq35uwBD)
Other
37 stars 34 forks source link

SeedCropFarmer.java: script goes to infinite loop with new pocket gild system #73

Closed AndreiRomaniuk closed 1 year ago

AndreiRomaniuk commented 1 year ago

Describe the bug New pocket gilds allows to increase inventory size. But each gild adds only one slot to inventory. So now game have non-rectange inventories. For exmaple, i have backpack, bought game and merchants robe, so my inventory is 7x5. I wear two linen pants with 3 pockets each, which add me 6 pockets. 5 pockets counts as new column, so i have 8x5 inv, and last pockest start new row with only one cell on it. And script seems to use only rectangle, so it thinks that my inventory not 8x5+1, but 8x6. So when inventory is full, script thinks that there is some free space and infinitley try to harvest crop. Screenshot_2

To Reproduce Steps to reproduce the behavior:

  1. Take off all inventory slots gear
  2. Wear gear with atleast one pocket
  3. Run script on a field with enough crops to fill 1 inventory
  4. See infinite loop