summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata/CoreAssetPropagator.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-04-04 12:11:06 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-04-04 12:11:06 -0400
commitbca1e63c3e66011aef8cb9736e091ced05aa4992 (patch)
tree776bc924a7bbe5b2b6a6c4d7ad8de817aae8c9c9 /src/SMAPI/Metadata/CoreAssetPropagator.cs
parentc7db35818b93ea4735c2b69ce28cd0a24e603d14 (diff)
downloadSMAPI-bca1e63c3e66011aef8cb9736e091ced05aa4992.tar.gz
SMAPI-bca1e63c3e66011aef8cb9736e091ced05aa4992.tar.bz2
SMAPI-bca1e63c3e66011aef8cb9736e091ced05aa4992.zip
fix error when mod edits bundle data while a split-screen player is joining
Diffstat (limited to 'src/SMAPI/Metadata/CoreAssetPropagator.cs')
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 3146ceaf..623c65d5 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -274,6 +274,7 @@ namespace StardewModdingAPI.Metadata
return true;
case "data\\bundles": // NetWorldState constructor
+ if (Context.IsMainPlayer && Game1.netWorldState != null)
{
var bundles = this.Reflection.GetField<NetBundles>(Game1.netWorldState.Value, "bundles").GetValue();
var rewards = this.Reflection.GetField<NetIntDictionary<bool, NetBool>>(Game1.netWorldState.Value, "bundleRewards").GetValue();