From b704f08c636fb499ee81619e498c1bd7b9364f30 Mon Sep 17 00:00:00 2001 From: d4vid Date: Sat, 21 Jun 2025 10:23:47 +0200 Subject: [PATCH] Fix mod checking --- DLatchPoke/DLatchPoke/manifest.jecs | 2 +- DLatchPoke/DLatchPoke/src/server/DLatchPokeServer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DLatchPoke/DLatchPoke/manifest.jecs b/DLatchPoke/DLatchPoke/manifest.jecs index 2da36f9..0f9d477 100644 --- a/DLatchPoke/DLatchPoke/manifest.jecs +++ b/DLatchPoke/DLatchPoke/manifest.jecs @@ -1,7 +1,7 @@ ID: D4VID_DLatchPoke Name: DLatch Poke Author: D4VID -Version: 1.0.1 +Version: 1.0.2 Priority: 0 Dependencies: - EccsLogicWorldAPI diff --git a/DLatchPoke/DLatchPoke/src/server/DLatchPokeServer.cs b/DLatchPoke/DLatchPoke/src/server/DLatchPokeServer.cs index 4fe648a..2ba9a32 100644 --- a/DLatchPoke/DLatchPoke/src/server/DLatchPokeServer.cs +++ b/DLatchPoke/DLatchPoke/src/server/DLatchPokeServer.cs @@ -45,7 +45,7 @@ namespace DLatchPoke.Server { /// Used to check if the player has this mod installed /// public void Verify(VerificationContext ctx) { - bool hasMod = ctx.ApprovalPacket.ClientMods.Contains(Manifest.ID); + bool hasMod = ctx.ApprovalPacket.ClientMods.Contains((Manifest.ID, Manifest.Version)); string playerName = ctx.PlayerID.Name; _playerHasMod[playerName] = hasMod; }