summaryrefslogtreecommitdiff
path: root/TrainerMod
diff options
context:
space:
mode:
authorClxS <slxxls92@gmail.com>2016-03-03 17:17:44 +0000
committerClxS <slxxls92@gmail.com>2016-03-03 17:17:44 +0000
commit14c7389921e0a548fa2386a0c3dfdb5ae5da296c (patch)
treeeaa65b3f6693f5e89d7ac82d8039fa097ecf9a01 /TrainerMod
parent2a9c08e1ad85a28b74b27a3e8d7f568c2f77a38f (diff)
parent659825ea783cdf57f7b1150bfd8a8191217b76ef (diff)
downloadSMAPI-14c7389921e0a548fa2386a0c3dfdb5ae5da296c.tar.gz
SMAPI-14c7389921e0a548fa2386a0c3dfdb5ae5da296c.tar.bz2
SMAPI-14c7389921e0a548fa2386a0c3dfdb5ae5da296c.zip
Merge pull request #2 from Zoryn4163/master
Merge pull request #2 from Zoryn4163/master
Diffstat (limited to 'TrainerMod')
-rw-r--r--TrainerMod/TrainerMod.cs3
-rw-r--r--TrainerMod/bin/Debug/TrainerMod.dllbin23552 -> 23552 bytes
-rw-r--r--TrainerMod/obj/Debug/TrainerMod.dllbin23552 -> 23552 bytes
3 files changed, 3 insertions, 0 deletions
diff --git a/TrainerMod/TrainerMod.cs b/TrainerMod/TrainerMod.cs
index 86b03673..4aa2167f 100644
--- a/TrainerMod/TrainerMod.cs
+++ b/TrainerMod/TrainerMod.cs
@@ -761,7 +761,10 @@ namespace TrainerMod
static void RegisterNewItem(Command cmd)
{
if (!Program.debug)
+ {
+ Program.LogError("Experimental code cannot be run in user mode.");
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 9fc10782..d6e49439 100644
--- a/TrainerMod/bin/Debug/TrainerMod.dll
+++ b/TrainerMod/bin/Debug/TrainerMod.dll
Binary files differ
diff --git a/TrainerMod/obj/Debug/TrainerMod.dll b/TrainerMod/obj/Debug/TrainerMod.dll
index 9fc10782..d6e49439 100644
--- a/TrainerMod/obj/Debug/TrainerMod.dll
+++ b/TrainerMod/obj/Debug/TrainerMod.dll
Binary files differ