diff --git a/Core/CustomMovement.cs b/Core/CustomMovement.cs index 068e164..ca3afa2 100644 --- a/Core/CustomMovement.cs +++ b/Core/CustomMovement.cs @@ -82,7 +82,6 @@ void Update() { internal void ApplyConfigSpeeds(bool host = false) { var prefix = host ? "Host" : "Client"; - Plugin.Logger.LogDebug($"{prefix} - move speed set to: {cfg?.MOVEMENT_SPEED?.Value}"); player.movementSpeed = ValNonNegative(cfg.MOVEMENT_SPEED); diff --git a/Data/MCEConfig.cs b/Data/MCEConfig.cs index d1fb7bf..80753e0 100644 --- a/Data/MCEConfig.cs +++ b/Data/MCEConfig.cs @@ -63,7 +63,7 @@ public class MCEConfig : SyncedConfig { [NonSerialized] readonly ConfigFile configFile; - public MCEConfig(ConfigFile cfg) : base("MCE") { + public MCEConfig(ConfigFile cfg) : base("MovementCompanyEnhanced") { ConfigManager.Register(this); configFile = cfg; @@ -194,6 +194,8 @@ public void InitBindings() { "Essentially, this affects how much the player is slowed down when hitting the ground." ); #endregion + + EnableHostSyncControl(SYNC_TO_CLIENTS); } void ApplySpeedsAfterSync(object s, EventArgs e) => diff --git a/Patches/NetworkManagerPatch.cs b/Patches/NetworkManagerPatch.cs deleted file mode 100644 index e2ac1ee..0000000 --- a/Patches/NetworkManagerPatch.cs +++ /dev/null @@ -1,16 +0,0 @@ -using HarmonyLib; -using MovementCompanyEnhanced.Core; - -namespace MovementCompanyEnhanced.Patches; - -[HarmonyPatch(typeof(GameNetworkManager))] -internal class NetworkManagerPatch { - [HarmonyPostfix] - [HarmonyPatch("StartDisconnect")] - public static void PlayerLeave() { - if (!MCEConfig.Default.SYNC_TO_CLIENTS) - return; - - // MCEConfig.RevertSync(); - } -} \ No newline at end of file