Skip to content

Commit 200d1cb

Browse files
Merge pull request #486 from UnrealValentin/UnrealValentin-patch-1
2 parents 02e655f + b6d19dd commit 200d1cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NebulaPatcher/Patches/Dynamic/StorageComponent_Patch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static bool TakeItemFromGrid_Prefix(StorageComponent __instance, int grid
5050
[HarmonyPatch(nameof(StorageComponent.SetBans))]
5151
public static void SetBans_Postfix(StorageComponent __instance, int _bans)
5252
{
53-
if (Multiplayer.IsActive && !Multiplayer.Session.Storage.IsIncomingRequest)
53+
if (Multiplayer.IsActive && !Multiplayer.Session.Storage.IsIncomingRequest && GameMain.data.localPlanet != null)
5454
{
5555
HandleUserInteraction(__instance, new StorageSyncSetBansPacket(__instance.id, GameMain.data.localPlanet.id, _bans));
5656
}

0 commit comments

Comments
 (0)