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.
This commit is contained in:
tomat committed 2024-05-14 20:20:40 -07:00
1 parent 39befd8a07
commit 2edbe24bd9
1 file changed
+1
+1
View File
@@ -19,6 +19,7 @@ namespace CalamityMod.Walls
internal static class VisibleThroughWater
{
[Autoload(Side = ModSide.Client)]
private sealed class VisibleThroughWaterSystem : ModSystem
{
public override void AddRecipes()