summaryrefslogtreecommitdiff
path: root/TrainerMod/TrainerMod.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TrainerMod/TrainerMod.cs')
-rw-r--r--TrainerMod/TrainerMod.cs3
1 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);