summaryrefslogtreecommitdiff
path: root/TrainerMod
diff options
context:
space:
mode:
authorClxS <slxxls92@gmail.com>2016-03-06 23:28:32 +0000
committerClxS <slxxls92@gmail.com>2016-03-06 23:28:32 +0000
commit49090c98fcdc11ca536de42875f50b763e83ce63 (patch)
tree184c24f76dc30e4e2ea6383b58b9e33cdd5db93d /TrainerMod
parent8bf9e7409692a59c880158cf851f55da35f3022e (diff)
downloadSMAPI-49090c98fcdc11ca536de42875f50b763e83ce63.tar.gz
SMAPI-49090c98fcdc11ca536de42875f50b763e83ce63.tar.bz2
SMAPI-49090c98fcdc11ca536de42875f50b763e83ce63.zip
Fixed mod content path not being set correctly. Fixed object draw code. Custom objects can now be placed and show up correctly.
Diffstat (limited to 'TrainerMod')
-rw-r--r--TrainerMod/TrainerMod.cs4
-rw-r--r--TrainerMod/TrainerMod.csproj6
2 files changed, 4 insertions, 6 deletions
diff --git a/TrainerMod/TrainerMod.cs b/TrainerMod/TrainerMod.cs
index 9f918ce4..e2482c5d 100644
--- a/TrainerMod/TrainerMod.cs
+++ b/TrainerMod/TrainerMod.cs
@@ -762,12 +762,10 @@ namespace TrainerMod
static void RegisterNewItem(object sender, EventArgsCommand e)
{
#if DEBUG
- Log.Error("Experimental code cannot be run in user mode.");
- return;
-#endif
SObject s = SGame.PullModItemFromDict(0, true);
s.Stack = 999;
Game1.player.addItemToInventory(s);
+#endif
}
}
}
diff --git a/TrainerMod/TrainerMod.csproj b/TrainerMod/TrainerMod.csproj
index 8753bc1b..3cd42786 100644
--- a/TrainerMod/TrainerMod.csproj
+++ b/TrainerMod/TrainerMod.csproj
@@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
+ <OutputPath>..\StardewModdingAPI\bin\x86\Debug\Mods\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
@@ -41,7 +41,7 @@
<Private>False</Private>
</Reference>
<Reference Include="Stardew Valley">
- <HintPath>$(SteamInstallPath)\steamapps\common\Stardew Valley\Stardew Valley.exe</HintPath>
+ <HintPath>..\..\..\..\Games\SteamLibrary\steamapps\common\Stardew Valley\Stardew Valley.exe</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
@@ -53,7 +53,7 @@
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="xTile">
- <HintPath>$(SteamInstallPath)\steamapps\common\Stardew Valley\xTile.dll</HintPath>
+ <HintPath>..\..\..\..\Games\SteamLibrary\steamapps\common\Stardew Valley\xTile.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>