Skip to content

Commit

Permalink
[no_more_watering v0.0.2] fixed a glitch causing untilled tiles to be…
Browse files Browse the repository at this point in the history
… retilled and watered overnight
  • Loading branch information
devopsdinosaur committed Jan 23, 2023
1 parent 1b01be6 commit c621640
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion no_more_watering/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ private static bool Prefix() {
short key = item.Key;
foreach (KeyValuePair<KeyTuple<ushort, ushort>, byte> item2 in item.Value.ToList()) {
Vector2Int position = new Vector2Int(item2.Key.Item1, item2.Key.Item2);
SingletonBehaviour<TileManager>.Instance.Water(position, key);
if (TileManager.Instance.IsWaterable(position) && !TileManager.Instance.IsWatered(position)) {
TileManager.Instance.Water(position, key);
}
}
}
return false;
Expand Down

0 comments on commit c621640

Please sign in to comment.