diff --git a/UIInfoSuite2/UIElements/ShowCropAndBarrelTime.cs b/UIInfoSuite2/UIElements/ShowCropAndBarrelTime.cs index 8a71f836..8765da7f 100644 --- a/UIInfoSuite2/UIElements/ShowCropAndBarrelTime.cs +++ b/UIInfoSuite2/UIElements/ShowCropAndBarrelTime.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -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) + if (_currentTile.Value is IndoorPot pot) { - return; - } - - if (pot.hoeDirt.Value != null) - { - _currentTerrain.Value = pot.hoeDirt.Value; - } + if (pot.hoeDirt.Value != null) + { + _currentTerrain.Value = pot.hoeDirt.Value; + } - if (pot.bush.Value != null) - { - _currentTerrain.Value = pot.bush.Value; + if (pot.bush.Value != null) + { + _currentTerrain.Value = pot.bush.Value; + } } }