Compare commits

...

2 Commits

Author SHA1 Message Date
D4VID 627507ff9b Fix mod checking
3 months ago
D4VID 0cb01e5b23 Fix reference name
4 months ago

@ -35,7 +35,7 @@
<Reference Include="LogicWorld.BuildingManagement"> <Reference Include="LogicWorld.BuildingManagement">
<HintPath>$(LogicWorldGameLocation)\Logic_World_Data\Managed\LogicWorld.BuildingManagement.dll</HintPath> <HintPath>$(LogicWorldGameLocation)\Logic_World_Data\Managed\LogicWorld.BuildingManagement.dll</HintPath>
</Reference> </Reference>
<Reference Include="LogicWorld.Building"> <Reference Include="LogicWorld.Players">
<HintPath>$(LogicWorldGameLocation)\Logic_World_Data\Managed\LogicWorld.Players.dll</HintPath> <HintPath>$(LogicWorldGameLocation)\Logic_World_Data\Managed\LogicWorld.Players.dll</HintPath>
</Reference> </Reference>
<Reference Include="LogicWorld.Physics"> <Reference Include="LogicWorld.Physics">

@ -1,7 +1,7 @@
ID: CriticalPathAnalyzer ID: CriticalPathAnalyzer
Name: CriticalPathAnalyzer Name: CriticalPathAnalyzer
Author: D4VID Author: D4VID
Version: 0.3.0 Version: 0.3.1
Priority: 0 Priority: 0
Dependencies: Dependencies:
- EccsLogicWorldAPI - EccsLogicWorldAPI

@ -46,7 +46,7 @@ namespace CriticalPathAnalyzer.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;
_playerHasWireTracer[playerName] = hasMod; _playerHasWireTracer[playerName] = hasMod;
LoggerInstance.Info($"Verifying player {playerName}: hasMod={hasMod}"); LoggerInstance.Info($"Verifying player {playerName}: hasMod={hasMod}");

Loading…
Cancel
Save