This repository was archived by the owner on Dec 25, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,12 @@ namespace PocceMod.Client
1010{
1111 public class Telemetry : BaseScript
1212 {
13- private static readonly bool Enabled ;
13+ private static readonly bool Enabled = Config . GetConfigBool ( "EnableTelemetry" ) ;
1414 private static readonly List < Measurement > _measurements = new List < Measurement > ( ) ;
1515
1616 public delegate void TelemetryReceivedDelegate ( int sourcePlayer , Measurement measurement ) ;
1717 public static event TelemetryReceivedDelegate TelemetryReceived ;
1818
19- static Telemetry ( )
20- {
21- Enabled = Config . GetConfigBool ( "EnableTelemetry" ) ;
22- }
23-
2419 public Telemetry ( )
2520 {
2621 EventHandlers [ "PocceMod:RequestTelemetry" ] += new Action < int , int > ( NetRequestTelemetry ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public Telemetry()
1515 private void RequestTelemetry ( [ FromSource ] Player source , int timeoutSec )
1616 {
1717 if ( Permission . CanDo ( source , Ability . ReceiveTelemetry ) )
18- TriggerEvent ( "PocceMod:RequestTelemetry" , source . Handle , timeoutSec ) ;
18+ TriggerClientEvent ( "PocceMod:RequestTelemetry" , source . Handle , timeoutSec ) ;
1919 }
2020
2121 private void SendTelemetry ( [ FromSource ] Player source , int targetPlayer , dynamic data )
You can’t perform that action at this time.
0 commit comments