Added check for MP to avoid Exception

This commit is contained in:
Flowaria authored and Cameron Ewell committed 2025-10-31 15:27:41 -04:00
1 parent 5a1ba771fc
commit 13c71f7272
1 file changed
+1 -1
+1 -1
View File
@@ -442,7 +442,7 @@ namespace CalamityMod.UI.ModeIndicator
SoundEngine.PlaySound(mode.ActivationSound);
if (broadcast)
if (Main.netMode != NetmodeID.SinglePlayer && broadcast)
{
SwitchToDifficultyPacket.Send(mode);
}