From 47fecbd81eeecd9244ee2384f99bc224d5475029 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Wed, 2 Mar 2016 22:54:37 -0500 Subject: more events --- TrainerMod/TrainerMod.cs | 5 +++++ TrainerMod/bin/Debug/TrainerMod.dll | Bin 23040 -> 23040 bytes TrainerMod/obj/Debug/TrainerMod.dll | Bin 23040 -> 23040 bytes 3 files changed, 5 insertions(+) (limited to 'TrainerMod') 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); diff --git a/TrainerMod/bin/Debug/TrainerMod.dll b/TrainerMod/bin/Debug/TrainerMod.dll index 4552ec76..2ca9ad54 100644 Binary files a/TrainerMod/bin/Debug/TrainerMod.dll and b/TrainerMod/bin/Debug/TrainerMod.dll differ diff --git a/TrainerMod/obj/Debug/TrainerMod.dll b/TrainerMod/obj/Debug/TrainerMod.dll index 4552ec76..2ca9ad54 100644 Binary files a/TrainerMod/obj/Debug/TrainerMod.dll and b/TrainerMod/obj/Debug/TrainerMod.dll differ -- cgit