fix crossplatform error due to Netcode references not being rewritten (#514)

This commit is contained in:
Jesse Plamondon-Willard 2018-05-16 01:08:47 -04:00
parent 639302aa65
commit 57aa4016ab
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,7 @@ namespace StardewModdingAPI
case Platform.Mac: case Platform.Mac:
removeAssemblyReferences = new[] removeAssemblyReferences = new[]
{ {
"Netcode",
"Stardew Valley", "Stardew Valley",
"Microsoft.Xna.Framework", "Microsoft.Xna.Framework",
"Microsoft.Xna.Framework.Game", "Microsoft.Xna.Framework.Game",
@ -124,6 +125,7 @@ namespace StardewModdingAPI
}; };
targetAssemblies = new[] targetAssemblies = new[]
{ {
typeof(Netcode.NetBool).Assembly,
typeof(StardewValley.Game1).Assembly, typeof(StardewValley.Game1).Assembly,
typeof(Microsoft.Xna.Framework.Vector2).Assembly typeof(Microsoft.Xna.Framework.Vector2).Assembly
}; };
@ -132,11 +134,13 @@ namespace StardewModdingAPI
case Platform.Windows: case Platform.Windows:
removeAssemblyReferences = new[] removeAssemblyReferences = new[]
{ {
"Netcode",
"StardewValley", "StardewValley",
"MonoGame.Framework" "MonoGame.Framework"
}; };
targetAssemblies = new[] targetAssemblies = new[]
{ {
typeof(Netcode.NetBool).Assembly,
typeof(StardewValley.Game1).Assembly, typeof(StardewValley.Game1).Assembly,
typeof(Microsoft.Xna.Framework.Vector2).Assembly, typeof(Microsoft.Xna.Framework.Vector2).Assembly,
typeof(Microsoft.Xna.Framework.Game).Assembly, typeof(Microsoft.Xna.Framework.Game).Assembly,