From 0422a5e5e14e1f8a99ce7e6fc7a95be032a41017 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 22 Aug 2020 13:15:22 -0500 Subject: [PATCH] Fixed Levi MP issues --- NPCs/Leviathan/Leviathan.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 70135af900..34ebf44c1d 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -744,6 +744,10 @@ namespace CalamityMod.NPCs.Leviathan public override void FindFrame(int frameHeight) { + // Don't run texture related code on the server since textures do not exist there. + if (Main.netMode == NetmodeID.Server) + return; + Texture2D texture = Main.npcTexture[npc.type]; if (npc.ai[0] == 1f || npc.Calamity().newAI[3] < 180f) {