From 49090c98fcdc11ca536de42875f50b763e83ce63 Mon Sep 17 00:00:00 2001 From: ClxS Date: Sun, 6 Mar 2016 23:28:32 +0000 Subject: Fixed mod content path not being set correctly. Fixed object draw code. Custom objects can now be placed and show up correctly. --- TrainerMod/TrainerMod.cs | 4 +--- TrainerMod/TrainerMod.csproj | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'TrainerMod') 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 @@ true full false - bin\Debug\ + ..\StardewModdingAPI\bin\x86\Debug\Mods\ DEBUG;TRACE prompt 4 @@ -41,7 +41,7 @@ False - $(SteamInstallPath)\steamapps\common\Stardew Valley\Stardew Valley.exe + ..\..\..\..\Games\SteamLibrary\steamapps\common\Stardew Valley\Stardew Valley.exe False @@ -53,7 +53,7 @@ - $(SteamInstallPath)\steamapps\common\Stardew Valley\xTile.dll + ..\..\..\..\Games\SteamLibrary\steamapps\common\Stardew Valley\xTile.dll False -- cgit