Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug where hover-text isn't shown for indoor pots when they are placed on flooring #638

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NermNermNerm
Copy link

To repro the bug:

  1. Create a bit of flooring (e.g. 'wood path')
  2. Place it down.
  3. Place down an Indoor Pot on top of that wood path
  4. Plant a seed in it
  5. Hover over it

Note that it doesn't show anything.

@@ -111,20 +111,17 @@ private void OnUpdateTicked(object? sender, UpdateTickedEventArgs e)
_currentTerrain.Value = terrain;
}

// Make sure that _terrain is null before overwriting it because Tea Saplings are added to terrainFeatures and not IndoorPot.bush
if (_currentTerrain.Value != null || _currentTile.Value is not IndoorPot pot)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real essence of the change is to remove "_currentTerrain.Value != null ||". (everything else is just syntax).

As best I can tell, TeaBushes used to work very differently from everything else back in the day. But now things are a whole lot simpler. I've been able to test this in several saves with tea bushes but don't have one handy where the tea bushes are supposed to be harvestable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants