StardewMods icon indicating copy to clipboard operation
StardewMods copied to clipboard

LookupAnything incorrectly reports adjacent stage 4 trees block growth

Open tvolin opened this issue 6 months ago • 1 comments

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. https://github.com/Pathoschild/StardewMods/blob/83fa286343014d75e13508f34a8023abda65776b/LookupAnything/Framework/Lookups/TerrainFeatures/TreeSubject.cs#L183

tvolin avatar May 27 '25 10:05 tvolin

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

tvolin avatar Jun 01 '25 17:06 tvolin

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

Pathoschild avatar Jul 19 '25 19:07 Pathoschild