Console Commands SetMoneyCommand Fix

This commit is contained in:
Chris 2019-09-17 15:40:41 -04:00
parent f3b6b06d60
commit dc7ca4e10c
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using StardewValley;
namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.Commands.Player
@ -60,12 +60,13 @@ namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.Commands.Player
}
}
/// <summary>Perform any logic needed on update tick.</summary>
/// <param name="monitor">Writes messages to the console and log file.</param>
public override void Update(IMonitor monitor)
{
if (this.InfiniteMoney)
Game1.player.money = 999999;
Game1.player.Money = 999999;
}
}
}