Lookup Anything

Lookup Anything

391k Downloads

LookupAnything incorrectly reports adjacent stage 4 trees block growth

tvolin opened this issue ยท 2 comments

commented

In my experience, at least with SDV 1.6.9+, a wild tree will grow from stage 4 to stage 5 if it is adjacent to another stage 4 wild tree.
It is a race between to adjacent stage 4 trees. One will win, one will lose.

LookupAnything reports growth as blocked if a stage 4 tree is adjacent.
Test: Make two adjacent wild trees, debug grow them to stage 4, wait a few days (or fertilize one and wait exactly 2 days). See that one tree becomes a full-grown tree.

Fix: Remove "- 1" from the end of the statement on this line.

Sorry for not attaching a PR.

select otherTree != null && otherTree.growthStage.Value >= (int)(WildTreeGrowthStage.Tree - 1)

commented

Fixed in the upcoming Lookup Anything 1.52.0. Thanks for reporting it!

commented

TIL there is also this method: tree.IsGrowthBlockedByNearbyTree()