Fix mod checking

v1
d4vid 3 months ago
parent fab436938a
commit b704f08c63

@ -1,7 +1,7 @@
ID: D4VID_DLatchPoke ID: D4VID_DLatchPoke
Name: DLatch Poke Name: DLatch Poke
Author: D4VID Author: D4VID
Version: 1.0.1 Version: 1.0.2
Priority: 0 Priority: 0
Dependencies: Dependencies:
- EccsLogicWorldAPI - EccsLogicWorldAPI

@ -45,7 +45,7 @@ namespace DLatchPoke.Server {
/// Used to check if the player has this mod installed /// Used to check if the player has this mod installed
/// </summary> /// </summary>
public void Verify(VerificationContext ctx) { 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; string playerName = ctx.PlayerID.Name;
_playerHasMod[playerName] = hasMod; _playerHasMod[playerName] = hasMod;
} }

Loading…
Cancel
Save