diff options
author | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-02 22:54:37 -0500 |
---|---|---|
committer | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-02 22:54:37 -0500 |
commit | 47fecbd81eeecd9244ee2384f99bc224d5475029 (patch) | |
tree | a209ac7178474fc7c97b950471618edbb298d1bc /TrainerMod/TrainerMod.cs | |
parent | 5a33d4c7f2f136fdd821ab46e2a44325e4559627 (diff) | |
download | SMAPI-47fecbd81eeecd9244ee2384f99bc224d5475029.tar.gz SMAPI-47fecbd81eeecd9244ee2384f99bc224d5475029.tar.bz2 SMAPI-47fecbd81eeecd9244ee2384f99bc224d5475029.zip |
more events
Diffstat (limited to 'TrainerMod/TrainerMod.cs')
-rw-r--r-- | TrainerMod/TrainerMod.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/TrainerMod/TrainerMod.cs b/TrainerMod/TrainerMod.cs index 250ccab5..a9896aac 100644 --- a/TrainerMod/TrainerMod.cs +++ b/TrainerMod/TrainerMod.cs @@ -46,6 +46,9 @@ namespace TrainerMod static void Events_UpdateTick() { + if (Game1.player == null) + return; + if (infHealth) { Game1.player.health = Game1.player.maxHealth; @@ -756,6 +759,8 @@ namespace TrainerMod static void RegisterNewItem(Command cmd) { + if (!Program.debug) + return; SObject s = SGame.PullModItemFromDict(0, true); s.Stack = 999; Game1.player.addItemToInventory(s); |