From 2edbe24bd98f3a2c85ca8ac36dbee07bb1312d1c Mon Sep 17 00:00:00 2001 From: tomat Date: Tue, 14 May 2024 20:20:40 -0700 Subject: [PATCH] Simple visible-through-water fix: only load system on the client's end. Fixes an issue caused by MapHelper.wallLookup being null on servers. May want to look at a more aggressive check later? We still perform other behavior including the IL edits on the server, not that it matters much. --- Walls/IVisibleThroughWater.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Walls/IVisibleThroughWater.cs b/Walls/IVisibleThroughWater.cs index 189038f712..0affafae66 100644 --- a/Walls/IVisibleThroughWater.cs +++ b/Walls/IVisibleThroughWater.cs @@ -19,6 +19,7 @@ namespace CalamityMod.Walls internal static class VisibleThroughWater { + [Autoload(Side = ModSide.Client)] private sealed class VisibleThroughWaterSystem : ModSystem { public override void AddRecipes()