Skip to content

Commit

Permalink
Fix issue on (true) dedicated servers
Browse files Browse the repository at this point in the history
Simply skip any patching for dedicated servers.
Truly dedicated server is missing the weather manager.
Fixes #1
  • Loading branch information
mgreter committed Apr 22, 2024
1 parent 01fa6ff commit 04fa707
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Harmony/WaterShader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class OcbWaterShader : IModApi

public void InitMod(Mod mod)
{
if (GameManager.IsDedicatedServer) return;
Log.Out("OCB Harmony Patch: " + GetType().ToString());
Harmony harmony = new Harmony(GetType().ToString());
harmony.PatchAll(Assembly.GetExecutingAssembly());
Expand Down
2 changes: 1 addition & 1 deletion ModInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<Description value="Replace vanilla water shader for alternative look." />
<Website value="https://github.com/OCB7D2D/OcbWaterShader" />
<Author value="ocbMaurice" />
<Version value="0.3.0" />
<Version value="0.3.1" />
</xml>
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ ws set o _NormalMap1 7,13 // set uv offset

## Changelog

### Version 0.3.1

- Fix issue with dedicated servers

### Version 0.3.0

- Add geometry tessellation for waves
Expand Down
Binary file modified WaterShader.dll
Binary file not shown.

0 comments on commit 04fa707

Please sign in to comment.