diff options
author | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-01 23:24:19 -0500 |
---|---|---|
committer | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-01 23:24:19 -0500 |
commit | c37d34a2707f54d766a832ffba2fb406397746c7 (patch) | |
tree | 98b7e4afd7bdd7d0b23d26ad2a2bda6ea8667f25 /StardewModdingAPI | |
parent | d12677b49c31e27d779bdfa0f1811a9eb2413ffd (diff) | |
download | SMAPI-c37d34a2707f54d766a832ffba2fb406397746c7.tar.gz SMAPI-c37d34a2707f54d766a832ffba2fb406397746c7.tar.bz2 SMAPI-c37d34a2707f54d766a832ffba2fb406397746c7.zip |
users shouldnt execute experimental code
Diffstat (limited to 'StardewModdingAPI')
-rw-r--r-- | StardewModdingAPI/Program.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/StardewModdingAPI/Program.cs b/StardewModdingAPI/Program.cs index af765f97..01075370 100644 --- a/StardewModdingAPI/Program.cs +++ b/StardewModdingAPI/Program.cs @@ -49,7 +49,7 @@ namespace StardewModdingAPI public static Thread gameThread; public static Thread consoleInputThread; - public const string Version = "0.3x Alpha"; + public const string Version = "0.32 Alpha"; public const bool debug = false; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -329,14 +329,20 @@ namespace StardewModdingAPI static void Events_LocationsChanged(List<GameLocation> newLocations) { - SGame.ModLocations = SGameLocation.ConvertGameLocations(Game1.locations); + if (debug) + { + SGame.ModLocations = SGameLocation.ConvertGameLocations(Game1.locations); + } } static void Events_CurrentLocationChanged(GameLocation newLocation) { //SGame.CurrentLocation = null; //System.Threading.Thread.Sleep(10); - SGame.CurrentLocation = SGame.ModLocations.First(x => x.name == newLocation.name); + if (debug) + { + SGame.CurrentLocation = SGame.ModLocations.First(x => x.name == newLocation.name); + } //Game1.currentLocation = SGame.CurrentLocation; //LogInfo(((SGameLocation) newLocation).name); //LogInfo("LOC CHANGED: " + SGame.currentLocation.name); |